He then returned to Shooshtar and then went to Karbala to study under Sheikh Mohammad Hossein Esfahani and Sharif ol Olama.
In 1287 AH the tomb of prophet Daniel in Susa was repaired by the order of Shaikh Jafar in the hands of Haj Mulla Hassan Memar.
On the way, he stopped at Ray, where many scholars and clerics on the order of Naser al-Din Shah Qajar visited him and asked him to stay in Tehran.
With the suggestion of Naser al-Din Shah Qajar, he moved to Sepahsalar Mosque, and according to one of his students, 40,000 people attended his sermons.
Shah suggested that he should stay in Tehran, but he said that he wants to be buried next to his master Ali Ibn Abi Talib in Najaf.