Kitab al-Kafi
He travelled to Baghdad for this reason and lived there for twenty years, engaged in teaching and pursuing academic work, until he died in 329 AH/941 CE. He is considered the foremost Shia compiler of hadith and was the author of Kitab al-Kafi.