At the time of the assassination attempt on the Shah, Subh-i-Azal was involved in an abortive attempt to create a rebellion in his home province of Nur. Subh-i-Azal avoided arrest and succeeded in escaping from Iran to Baghdad. Many Babis chose to follow suit, left Iran and joined Subh-i-Azal in Baghdad, and before long, there was a sizeable Babi community in this city.
After four months of imprisonment, Baha’u’llah was released at the intervention of the Russian ambassador, whose legation secretary was Baha’u’llah’s brother in-law. Refusing an offer of exile in Russia, he went to Baghdad, and in January 1853, he joined the Babi exile community there.