 On search of his place by Harun al Rashid, he concealed himself in underground passage constructed in his house and then left his place keeping his whereabouts a secret.Due to Harun al-Rashid's wife, Zubaida, and her loyalty to Imam Muhammad ibn Ismāʿīl.Imam Muhammad was able to evade enemy forces and migrate to Kufa.