Ibni Munawi said that, "Danyal (as) reported in his book that, "There are 3 Sufyans and 3 Mahdis. When the first Sufyan appears and his name and fame become widespread, the First Mahdi will confront him, the second Mahdi will confront the second Sufyan and Muhammad Mahdi will confront the third Sufyan and Allah, the Exalted, will send him to save the ones who have suffered mischief, and the believers. The Sunnah will be revived through him and bidat (to make innovation in Islam) will come to an end through him. The people will be highly prized and become victorious over their opponents at his time. A beautiful life will be lived, and the earth and the heavens will increase their blessing. (*)
(*) This hadith exists in a handwritten copy of the book titled Al-Burhan fi Alamat al-Mahdi Akhir al-Zaman held in the Suleymaniye Library.