Shrine venerated as the resting place of Shaykh Muhammad ibn Ya'qub al-Kulayni (c. 255–329 AH / 868–941 CE), Thiqat al-Islam, who spent twenty years teaching in Baghdad and compiled al-Kafi — the first of the four books of Shia hadith — from more than fifty teachers across Rey, Qom and Iraq. His grave is honoured inside the historic Jami al-Asifyah on the Rusafa bank of the Tigris, at the head of the Martyrs' Bridge beside the Mustansiriya Madrasa. The mosque began as a Sufi lodge in the late 16th century and took its present shape under the Mamluk governor Dawud Pasha in the 1820s; after long neglect the Shia Endowment restored it in 2014 and returned the grave to pilgrimage, and the mosque now carries two domes and separate prayer halls for men and women. Historians debate the tomb's identity — some honour it as the grave of the ascetic al-Harith al-Muhasibi, and the classical rijal sources record al-Kulayni's burial at the Bab al-Kufa cemetery — so ask your guide on the ground.