The Book of Occultation — al-Ṭūsī · Hadith 327 (#Ḥadīth #3)
Chapter 29 | Mahdi is from the progeny of Ali and Fatima
146- أحمد بن إدريس عن علي بن محمد بن قتيبة عن الفضل بن شاذان عن مصبح عن أبي عبد الرحمن عمن سمع وهب بن منبه يقول عن ابن عباس في حديث طويل أنه قال: … يا وهب،ثم يخرج المهدي. قلت: من ولدك؟قال: لا والله، ما هو من ولدي،ولكن من ولد علي. وطوبى لمن أدرك زمانه. وبه يفرج الله عن الأمة حتى يملأها قسطاً وعدلاً… إلى آخر الخبر.
H 146 - It is narrated from Ahmad bin Idris from Ali bin Muhammad Ibn Qutaibah from Fadhl bin Shazan from Misbah from Abu Abdur Rahman from one who says that it is narrated from Ibn Abbas that Wahab bin Munabbah asked him in a lengthy report: “Is he from your progeny?” He said: “No, by Allah, he is not from my progeny. He is from the progeny of Ali . Bliss be for the one who reaches his time. Through him, Allah will relieve the Ummah’s stress, until he makes the earth full of equity and justice...”
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).