The Seven Valleys was written in Baghdad in response to the questions of Shaykh Muhyi'd-Din, a Sufi of the Qadiri order. He was the son of Shaykh Hasan of Gilzarda and became Qadi (religious judge) of Khániqin, a town on the southern edge of Iraqi Kurdistan. Later, Shaykh Muhyi'd-Din succeeded to his father's position as a religious leader in Gilzarda. Shaykh Muhyi'd-Din had written books on Sufism and, at about the time that he wrote to Bahá'u'lláh, he gave up his position and set out wandering from place to place until his death in Kirkuk in 1877. He may have been one of the Kurdish Sufis whom Bahá'u'lláh had met in Sulaymaniyyih.