According to a narration, Zakaria ibn Adam said to Ali al-Ridha (the eighth Shia Imam): "I want to leave my family because idiots and ignorant people have increased among them". The Imam said to him: "O Zakaria, do not do this and do not emigrate from Qom, through your existence, God removes the calamity from your family (in another version: from the people of Qom) because of you, just as He removes the calamity from the people of Baghdad because of my father Musa al-Kadhim".[16][17]