Osman I had a close relationship with a local religious leader of dervishes named Sheikh Edebali, whose daughter he married. A story emerged among later Ottoman writers to explain the relationship between the two men, in which Osman had a dream while staying in the Sheikh's house.[38] The story appears in the late-fifteenth-century chronicle of Aşıkpaşazade as follows:
He saw that a moon arose from the holy man's breast and came to sink in his own breast. A tree then sprouted from his navel and its shade compassed the world. Beneath this shade there were mountains, and streams flowed forth from the foot of each mountain. Some people drank from these running waters, others watered gardens, while yet others caused fountains to flow. When Osman awoke he told the story to the holy man, who said 'Osman, my son, congratulations, for God has given the imperial office to you and your descendants and my daughter Malhun shall be your wife.[39]
The dream became an important foundational myth for the empire, imbuing the House of Osman with God-given authority over the earth and providing its fifteenth-century audience with an explanation for Ottoman success.[40] The dream story may also have served as a form of compact: just as God promised to provide Osman and his descendants with sovereignty, it was also implicit that it was the duty of Osman to provide his subjects with prosperity.[41]