Kitāb al-Ghayba

Hadith 114
occultationimam-kazimahl-al-baytimam-mahdi
54- قال وحدثني حنان عن أبي عبد الرحمن المسعودي قال حدثنا المنهال بن عمرو عن أبي عبد الله النعمان عن أبي جعفر عليه السلام قال: صاحب الأمر يسجن حينا ويموت حينا ويهرب حينا.
H 54 - Narrated to me Hanan from Abu Abdur Rahman Masudi that he said: Narrated to us: Minhal bin Amr from Abu Abdullah Noman from Imam Muhammad Baqir (a.s) that he said: The Master of the affair [Imamate] would be imprisoned once and also die at a time and flee [escape from prison].
Source: Shaykh Muḥammad b. al-Ḥasan al-Ṭūsī