Short answer: the Mahdi ("the rightly guided one") is a man from the family of the Prophet ﷺ, descended from Fatimah, who Sunni Muslims believe will appear before the end of time and fill the earth with justice as it had been filled with oppression. His name will be Muhammad and his father's name Abdullah. He is not mentioned in the Quran and not named in Sahih al-Bukhari or Sahih Muslim, but several reports in Abu Dawud, al-Tirmidhi and Ibn Majah are graded sound, and most Sunni scholars hold that belief in him is established. Many popular details about him come from weak or fabricated reports.
Who is the Mahdi?
The clearest report, which most others build on:
"If only one day of this world remained, Allah would lengthen that day until He sends a man from me, or from my family, whose name matches my name and whose father's name matches my father's name. He will fill the earth with equity and justice as it was filled with oppression and tyranny."
Sunan Abi Dawud 4282, from Abdullah ibn Masud. A shorter wording is in Jami at-Tirmidhi 2230, graded hasan sahih by al-Tirmidhi
From the sound reports, Sunni scholars draw a short and modest picture: he is a man from the Prophet's ﷺ family through Fatimah; his name is Muhammad ibn Abdullah; he will rule with justice for some years; and he will be present when Isa (Jesus) son of Maryam descends. He is a just ruler, not a prophet, and receives no new revelation.
The main reports, with their gradings
Gradings below are those of the compilers themselves and of later hadith scholars, especially al-Albani, whose gradings are the ones most cited today. Other scholars sometimes graded differently, as noted.
| Report | Source | Grading |
|---|---|---|
| His name matches the Prophet's ﷺ, his father's matches his father's; he fills the earth with justice | Sunan Abi Dawud 4282; Jami at-Tirmidhi 2230 | Hasan sahih (al-Tirmidhi and al-Albani) |
| "The Mahdi is from my family, from the children of Fatimah" | Sunan Abi Dawud 4284; Sunan Ibn Majah 4086 | Sahih (al-Albani) |
| "The Mahdi is from me": broad forehead, prominent nose, rules seven years | Sunan Abi Dawud 4285, from Abu Said al-Khudri | Hasan (al-Albani) |
| The Mahdi in my ummah; people come to him and he gives wealth freely | Jami at-Tirmidhi 2232, from Abu Said | Hasan (al-Tirmidhi) |
| "The Mahdi is from us, the people of the house. Allah will set him right in one night" | Sunan Ibn Majah 4085, from Ali | Hasan (al-Albani); weak according to others |
| A caliph at the end of time who hands out wealth without counting it | Sahih Muslim, from Jabir and Abu Said | Sahih, but he is not named the Mahdi; many scholars think it refers to him |
| An army sent against a man who seeks refuge at the Kaaba is swallowed by the earth | Sahih Muslim, from Umm Salamah and Hafsah | Sahih, but the man is not named; often linked to the Mahdi |
| After a caliph dies, a man flees from Madinah to Makkah; people pledge to him between the Corner and the Maqam | Sunan Abi Dawud 4286, from Umm Salamah | Weak (al-Albani), for an unnamed narrator; some earlier scholars accepted it |
| Black banners coming from Khurasan, with the Mahdi among them | Sunan Ibn Majah and Musnad Ahmad, from Thawban | Weak according to al-Albani and others |
| "There is no Mahdi except Isa son of Maryam" | Sunan Ibn Majah 4039 | Weak, called munkar (rejected) by al-Dhahabi and others |
The Mahdi and Isa (Jesus)
The sound hadith say Isa will descend at a time when the Muslims have a leader of their own, and that leader will lead a prayer:
"How will you be when the son of Maryam descends among you, and your imam is from among you?"
Sahih al-Bukhari 3449; Sahih Muslim 155, from Abu Hurayrah
"Isa son of Maryam will descend, and their leader will say: Come and lead us in prayer. He will say: No, some of you are leaders over others, as an honour from Allah for this ummah."
Sahih Muslim 156, from Jabir
Neither hadith names the leader, but many scholars identify him with the Mahdi on the strength of the other reports. Isa, not the Mahdi, is the one who kills the Dajjal. See our posts on the Dajjal and the Prophet Isa.
What is weak or made up
A great deal of what circulates about the Mahdi, in videos and forwarded messages, has no sound basis. Common examples:
- The Sufyani, a tyrant who will fight the Mahdi. Most of what is said about him comes from Kitab al-Fitan of Nu'aym ibn Hammad, a collection full of weak and unreliable reports.
- Exact years or dates for his appearance. No authentic hadith gives one.
- Two eclipses in one Ramadan as his sign. This is reported by al-Daraqutni as a saying of Muhammad al-Baqir, not of the Prophet ﷺ, and its chain is weak.
- A named living person being the Mahdi. Nobody can be identified from the hadith in advance, and people who have done this have caused great harm (see below).
- The black banners and the order to join them "even crawling over ice". Graded weak, and some scholars judged parts of it fabricated.
What scholars have said
- Most Sunni scholars affirm the Mahdi. Al-Shawkani wrote a treatise arguing that the reports about him reach the level of tawatur in meaning: too many, through too many routes, to be dismissed.
- Hanafi scholars affirm him too. Mulla Ali al-Qari wrote a treatise on the Mahdi, al-Mashrab al-Wardi fi Madhhab al-Mahdi. The early creed of al-Tahawi, used by Hanafis, lists the Dajjal and the descent of Isa among the signs, but does not mention the Mahdi by name.
- Ibn Khaldun (d. 1406), in his Muqaddimah, examined the chains and found most of them weak, while accepting that a few are sound. His critique is still cited by those who are cautious about the details.
- A small number of modern writers, such as Rashid Rida, doubted the whole belief. The majority have not followed them.
The Shia view
In Twelver Shia belief, the Mahdi is the twelfth imam, Muhammad ibn al-Hasan al-Askari, born in 868 or 869 CE (sources differ), who went into hiding (the occultation) as a child and will return. Sunni scholars hold instead that the Mahdi is a man who has not yet been born, or not yet appeared, and who will be known by his deeds, not by a claim. The title "Imam Mahdi" is used by both, which is why searchers often meet two very different pictures.
False claimants in history
Many people have claimed to be the Mahdi. Some of the best known:
| Year (CE) | Claimant | What happened |
|---|---|---|
| 1881 | Muhammad Ahmad, in Sudan | Declared himself the Mahdi, led a revolt and took Khartoum in 1885; he died the same year |
| 1844 | Ali Muhammad Shirazi, the Bab, in Iran | Claimed to be the gate to the hidden imam, later more; his movement led to the Babi and Baha'i religions |
| 1891 | Mirza Ghulam Ahmad, in Qadian, India | Claimed to be the promised Messiah and Mahdi, founding the Ahmadiyya movement |
| 1979 | Juhayman al-Otaybi, in Makkah | Seized al-Masjid al-Haram on 20 November 1979, proclaiming his brother-in-law Muhammad ibn Abdullah al-Qahtani the Mahdi. The siege lasted about two weeks and the claimed Mahdi was killed |
The lesson scholars draw: the Mahdi does not need to announce himself or be proved by a following, and a Muslim is never obliged to identify him.
What should a Muslim do?
- Believe in what the sound reports say, without adding to it.
- Do not wait for the Mahdi to fix things. The Quran asks each person to act now: "Allah will not change the condition of a people until they change what is in themselves" (13:11).
- Be cautious with forwarded messages and videos about the end times. Ask: which collection, which number, what grading?
- Prepare for your own end, which is closer than any sign. See signs of the Day of Judgement.
Questions
What is Imam Mahdi in Islam?
The Mahdi is a man from the Prophet's ﷺ family, named Muhammad ibn Abdullah, who Sunni Muslims believe will appear before the end of time and rule with justice. The belief rests on hadith in Abu Dawud, al-Tirmidhi and Ibn Majah, several graded sound.
Is the Mahdi mentioned in the Quran?
No. The Mahdi is not mentioned in the Quran. The belief comes from hadith.
Is the Mahdi mentioned in Sahih al-Bukhari?
Not by name. Al-Bukhari and Muslim report that Muslims will have their own imam when Isa descends, and Muslim reports a caliph at the end of time who gives wealth freely. Many scholars link these to the Mahdi.
Will the Mahdi come before the Dajjal?
Most scholars say yes: the Mahdi will be present, the Dajjal will appear, and Isa will descend and kill the Dajjal. The exact order of all the events is not fixed in sound texts.
What will the Mahdi do?
The sound reports say he will fill the earth with justice as it was filled with oppression, rule for some years (seven in one hasan report), and give wealth freely.
Is believing in the Mahdi part of iman?
It is not one of the six articles of faith. Most Sunni scholars hold that it is an established belief, because the reports are many and some are sound, but they do not treat it like the pillars of faith.
Sources
- Quran 13:11. Translation by Sahih International.
- Sunan Abi Dawud, Kitab al-Mahdi, 4282, 4284, 4285, 4286; Jami at-Tirmidhi 2230 and 2232; Sunan Ibn Majah 4039, 4085, 4086 and the hadith of Thawban on the black banners; Musnad Ahmad.
- Sahih al-Bukhari 3449; Sahih Muslim 155 and 156. Sahih Muslim, Kitab al-Fitan, the caliph who gives without counting (from Jabir and Abu Said) and the army swallowed by the earth (from Umm Salamah and Hafsah).
- Gradings: al-Tirmidhi in his Jami; al-Albani, Sahih and Da'if Sunan Abi Dawud and Sunan Ibn Majah, and Silsilat al-Ahadith al-Da'ifah.
- Al-Shawkani, al-Tawdih fi Tawatur ma Ja'a fi al-Muntazar wa al-Dajjal wa al-Masih. Mulla Ali al-Qari, al-Mashrab al-Wardi fi Madhhab al-Mahdi. Ibn Khaldun, al-Muqaddimah, chapter on the Fatimid (the expected one). Al-Tahawi, al-Aqidah al-Tahawiyyah.
- Encyclopaedia of Islam (Brill), entries al-Mahdi, Mahdiyya, and Ahmadiyya. Yaroslav Trofimov, The Siege of Mecca (2007), on the 1979 seizure.
The rulings on this page are pending review by the scholars on our team.