[2] Farghani was born in 1231 in Kashan, a town located in the Farghana Valley.
[2][5] Farghani later moved to the city of Konya in Anatolia, where he studied under Sadr al-Din al-Qunawi (died 1274), the most prominent disciple of the Andalusian scholar and mystic Ibn Arabi (died 1240).
During this period, Konya reportedly served as a gathering place for students who wanted to increase their knowledge in Sufism.
Through Qunawi, Farghani became acquainted with Ibn Arabi's ʿulum al-haqiqa ("Mystical theosophy").
[2] In 1247, Qunawi took his students (including Farghani) to Egypt, where he taught them the poem Nazm al-suluk ("Poem of the Sufi way"), also known as al-Taʾiyya al-kubra ("The greater ode with rhyming verse based upon the letter taʾ"), by the Egyptian Sufi poet Ibn al-Farid (died 1234).