Pelgrin was a planet in the Outer Rim. Over two million years before the Battle of Yavin, an indigenous species, the Pelgrin, built the Oracle on the planet, a merging of technology and the Force. The Pelgrin went extinct, leaving many mysterious ruins and artifacts.
Legend had it that over twenty-five thousand years before the Battle of Yavin, Xim the Despot visited the planet and the Oracle. Around 3000 BBY, the Jedi Ermin Phin-Mar and Shannur Darkstar studied the Oracle after the Jedi Council detected a tremor in the Force emanating from Pelgrin.
Following this expedition, the world was given to the Jedi by the Senate, over the objections of interested xenoarchaeologists. Sometime after 32 BBY, a band of pirates attacked Pelgrin and massacred the scientists and Jedi residing there.
Sources
"Gamescape" — Star Wars Insider 61 (as Pelgrim)- Power of the Jedi Sourcebook (First mentioned)
- The Complete Star Wars Encyclopedia
Essential Atlas Extra: The History of Xim and the Tion Cluster on StarWars.com (article) (backup link)
Xim Week: The Despotica (Part II: The Pirate Prince) on Hyperspace (article) (content obsolete and backup link not available)
Xim Week: The Despotica (Part IV: Evocar) on Hyperspace (article) (content obsolete and backup link not available)- The Essential Guide to Warfare