I heard the Messenger of Allah ﷺ say, "The Mahdi will be from my family, from the descendants of Fatimah."Abdullah bin Jafar said, "I heard Abu Malih praise Ali bin Nufayl and speak of his righteousness."
حدثنا أحمد بن إبراهيم حدثنا عبد الله بن جعفر الرقي حدثنا أبو المليح الحسن بن عمر عن زياد بن بيان عن علي بن نفيل عن سعيد بن المسيب
سمعت رسول الله ﷺ يقول المهدي من عترتي من ولد فاطمة قال عبد الله بن جعفر وسمعت أبا المليح يثني على علي بن نفيل ويذكر منه صلاحا
[Its chain is hasan] Reported by Ibn Majah in "The Book of Tribulations", chapter on the emergence of the Mahdi, no. 4086, from the hadith of Hasan bin Umar, through the same chain.