The story is an addition and expansion of the account of the Biblical Magi, recounted in the Gospel of Matthew in the New Testament. It tells about a "fourth" wise man (assuming the tradition that the Magi numbered three to be true), a priest of the Magi.