Now, if the first assumption is true, it obviously proves...
Now, if the first assumption is true, it obviously proves the unjustness of God who punishes His creatures for sins which they have not committed. And if the second condition be acceptable, even then God becomes unjust if He punishes the man for the crimes in which He is equally a partner. But the undesirability of both these conditions is evident in the case of God.
Thus, we are naturally left with the third alternative to the problem that men are absolutely responsible for their own doings." Imamate: The Holy Imam Ja'far as-Sadiq breathed his last on 25th Shawwal 148 AH, and with effect from the same date Imam Musa al-Kazim succeeded the holy office of Imamate as the Seventh Imam. The period of his Imamate continued for thirty-five years.
In the first decade of his Imamate, Imam Musa al-Kazim could afford a peaceful execution of the responsibilities of his sacred office and carried on the propagation of the teachings of the Holy Prophet. But soon after, fell victim to the ruling kings and a greater part of his life passed in prison. Political Condition: Imam Musa al-Kazim lived under the most crucial times in the regimes of the despotic `Abbasid kings who were marked for their tyrannical and cruel administration.
He witnessed the reigns of al-Mansur ad-Dawaniqi, al-Mahdi and Harun ar-Rashid. al-Mansur and Harun ar-Rashid were the despotic kings who put a multitude of innocent descendants of the Holy Prophet to the sword. Thousands of these martyrs were buried alive inside walls or put into horrible dark prisons during their lifetime. These depraved caliphs knew no pity or justice and they killed and tortured for the pleasure they derived from human sufferings.
The Holy Imam was saved from the tyranny of al-Mansur because the king, being occupied with his project of constructing the new city of Baghdad, could not get time to turn towards victimizing the Imam. By 157 AH the city of Baghdad was built. This was soon followed by the death of its founder a year later. After al-Mansur, his son al-Mahdi ascended the throne. For a few years he remained indifferent towards the Imam.
When in 164 AH he came to Medina and heard about the great reputation of the Imam, he could not resist his jealousy and the spark of his ancestral malice against the Ahlu'l-bayt was rekindled. He somehow managed to take the Imam along with him to Baghdad and got him imprisoned there. But after a year he realized his mistake and released the Imam from jail.