Mirza's father, Hassan ibn Nazar Ali Keikhi Rashti, was himself a virtuous man and wrote the book "Kas al-Sa'ilin" (Arabic: کأس السائلين, means: Askers' Cup) in the style of Kashkul.
Finally, to complete his education in 1174 AH (1761 CE), he left for Iraq and benefited from the presence of Muhammad Baqir Behbahani and received permission from him for Ijtihad and "Transmission of Hadiths".
[8][9][10] After that, he wrote and composed Tasnifs, taught and issued Fatwas, and propagated the Islam religion, and chose the city's Congregational mosque to hold Jumu'ah and Salah al jama'ah prayers.
These include:[12] One of the great services and valuable activities of this scientific personality was the training of excellent students, each of whom was a pioneer in the Islamic science and jurisprudence, the most prominent of whom are the following people:[12] In most Islamic sciences, such as jurisprudence, principles, theology, meanings and expressions, hadith, history, rijal, philosophy, ethics, civil politics and state customs, Mirza-ye Qomi has left valuable and unprecedented compositions and writings, each of which expresses intellectual genius and the scientific taste of him.
Most of his scientific works created during his stay in Qom, but the beginning of his writing and composition activity dates back to his youth when he was studying in the seminary of Khansar under master Agha Hossein Khansari.