Saint Josaphat (also known as Iosaphat or Ioasaph) is said to have lived and died in the 3rd century or 4th century in India.
According to legend, a King Abenner or Avenier in India persecuted the Christian church in his realm, founded by the Apostle Thomas. When astrologers predicted that his own son would someday become a Christian, Abenner had the young prince Josaphat isolated from external contact. Despite the imprisonment, Josaphat met the hermit Saint Barlaam and converted to Christianity. Josaphat kept his faith even in the face of his father's anger and persuasion. Eventually, Abenner himself converted, turned over his throne to Josaphat, and retired to the desert to become a hermit. Josaphat himself later abdicated and went into reclusion with his old teacher Baarlam.
The story of Josaphat and Baarlam was popular in the Middle Ages, appearing in such works as the Golden Legend. Josaphat and Barlaam were canonized in the Roman Catholic Church (feast day November 27) and are recognized among the Eastern Orthodox.
Wilfred Cantwell Smith traced the story from a second to fourth-century Sanskrit Mahayana Buddhist text, to a Manichee version, to an Arabic Muslim version, to an eleventh century Christian Georgian version, to a Christian Greek version, and from there into Western European languages. He traced Josaphat's name from the Sanskrit term bodhisattva via the Middle Persian bodasif.