Hadith on Mahdi: Righteous believers force the Mahdi to be Caliph

Umm Salamah reported: The Prophet, peace and blessings be upon him, said, “There will be a conflict with the death of a Caliph and a man among the residents of Medina will go out fleeing to Mecca. Some people will come to pledge allegiance to him, although he is unwilling, and they will pledge allegiance to him between the corner of the Ka’bah and the station of Abraham. An army from Syria will be dispatched for him and they will be swallowed in the desert between Mecca and Medina. When the people see that, the saints of Syria and the strong tribes of Iraq will come to him and pledge allegiance to him between the corner and the station.

Source: Sunan Abī Dāwūd 4286

Grade: Hasan (fair) according to Ibn al-Qayyim

عَنْ أُمِّ سَلَمَةَ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ يَكُونُ اخْتِلَافٌ عِنْدَ مَوْتِ خَلِيفَةٍ فَيَخْرُجُ رَجُلٌ مِنْ أَهْلِ الْمَدِينَةِ هَارِبًا إِلَى مَكَّةَ فَيَأْتِيهِ نَاسٌ مِنْ أَهْلِ مَكَّةَ فَيُخْرِجُونَهُ وَهُوَ كَارِهٌ فَيُبَايِعُونَهُ بَيْنَ الرُّكْنِ وَالْمَقَامِ وَيُبْعَثُ إِلَيْهِ بَعْثٌ مِنْ أَهْلِ الشَّامِ فَيُخْسَفُ بِهِمْ بِالْبَيْدَاءِ بَيْنَ مَكَّةَ وَالْمَدِينَةِ فَإِذَا رَأَى النَّاسُ ذَلِكَ أَتَاهُ أَبْدَالُ الشَّامِ وَعَصَائِبُ أَهْلِ الْعِرَاقِ فَيُبَايِعُونَهُ بَيْنَ الرُّكْنِ وَالْمَقَامِ

4286 سنن أبي داود كتاب المهدي

110 المحدث ابن القيم خلاصة حكم المحدث حسن في المنار المنيف