Short answer
Abu Bakr, Umar, Uthman and Ali, the first four leaders of the Muslims after the Prophet (ﷺ). Scholars such as Ibn Kathir add Ali's son al-Hasan. The Prophet (ﷺ) said the caliphate of prophecy would last thirty years. Abu Bakr (632-634), his closest companion, steadied the believers when he died and had the Qur'an gathered into one volume. Umar (634-644) was known for his justice. Uthman (644-656) sent copies of that Qur'an to every region. Ali (656-661), the Prophet's (ﷺ) cousin, gave his pledge to Abu Bakr and to Uthman, and took office the same way, by the pledge of the community. Al-Hasan then made the peace the Prophet (ﷺ) foretold. The Prophet (ﷺ) told Muslims to hold to his Sunnah and the Sunnah of the rightly guided caliphs.
Full explanation
The Prophet (ﷺ) foretold thirty years
The Prophet (ﷺ) said that the caliphate of prophecy would last thirty years. After that Allah (﷾) gives the kingdom to whom He wills. The companion Safina, who reported it, counted Abu Bakr, Umar, Uthman and then Ali. When someone said that Ali was not a caliph, Safina rejected it strongly. So this report, graded hasan sahih, counts Ali among the rightly guided caliphs. The Qur'an speaks of authority given to believers who do right, and of the religion Allah (﷾) chose for them being established.
Safina reports that the Prophet (ﷺ) said the caliphate of prophecy will last thirty years, after which Allah gives the kingdom to whom He wills. Safina told the narrator to count Abu Bakr's caliphate as two years, Umar's as ten, Uthman's as twelve, and then Ali's. When it was said that some deny Ali was a caliph, Safina strongly rejected this.
“Allah has promised, to those among you who believe and work righteous deeds, that He will, of a surety, grant them in the land, inheritance (of power), as He granted it to those before them; that He will establish in authority their religion - the one which He has chosen for them; and that He will change (their state), after the fear in which they (lived), to one of security and peace: 'They will worship Me (alone) and not associate aught with Me. 'If any do reject Faith after this, they are rebellious and wicked.”
- 632 to 634
Abu Bakr
The Prophet's (ﷺ) closest companion; he had the Qur'an gathered into one volume.
- 634 to 644
Umar
Known for his justice; stabbed as he began the dawn prayer.
- 644 to 656
Uthman
Sent copies of the Qur'an to every region; killed when rebels besieged his house.
- 656 to 661
Ali
The Prophet's (ﷺ) cousin; pledged to by the community after Uthman was killed. He ruled about four and a half years.
- 661
Al-Hasan
Ruled about six months, then made the peace the Prophet (ﷺ) foretold.
The Prophet (ﷺ) said the caliphate of prophecy would last thirty years.
"Hold to my Sunnah and the Sunnah of the rightly guided caliphs"
In a farewell exhortation the Prophet (ﷺ) told the companions to fear Allah (﷾), and warned that those who live after him would see much disagreement. He told them what to do. They should hold to his Sunnah and to the Sunnah of the rightly guided caliphs, and cling to it with their molars. They should avoid newly invented matters. That advice was given to the whole community.
Al-Irbad ibn Sariya reports a farewell exhortation of the Messenger of Allah (ﷺ), after which the eyes wept and the hearts trembled. He told them to fear Allah, to listen and obey, and warned of much disagreement to come. He said whoever lives will see it, so hold to my Sunnah and the Sunnah of the rightly guided caliphs, and beware of newly invented matters.
Abu Bakr, the first caliph (632-634)
Abu Bakr was the Prophet's (ﷺ) closest companion. He was with him in the cave when they left Mecca, and the Prophet (ﷺ) said to him: what do you think of two, the third of whom is Allah (﷾)? The Prophet (ﷺ) said that if he were to take a close friend, he would take Abu Bakr, who was his brother and companion. When the Prophet (ﷺ) died, Umar would not accept it. Abu Bakr told the people: whoever worshipped Muhammad, Muhammad is dead; whoever worshipped Allah (﷾), Allah (﷾) is alive and does not die. The people chose him, and Umar said to him: you are our chief, the best of us, and the dearest of us to the Messenger (ﷺ). As caliph he sent out the rules of zakah as the Prophet (ﷺ) had laid them down. After many who knew the Qur'an by heart were killed at Yamama, he had it gathered into one volume. Ali named him the best of people after the Prophet (ﷺ). About six months after the Prophet's (ﷺ) death, Ali sent for him, praised his excellence and gave him his pledge. Abu Bakr wept and said that kindness to the Prophet's (ﷺ) relatives was dearer to him than kindness to his own.
Abu Bakr reports that in the cave he said to the Prophet (ﷺ) that if any of their pursuers looked down at his feet, he would see them. The Prophet answered: Abu Bakr, what do you think of two, the third of whom is Allah?
Ibn Abbas reports that the Prophet (ﷺ) said that if he were to take a close friend (khalil), he would have taken Abu Bakr, but Abu Bakr is his brother and his companion.
Aisha reports that when the Prophet (ﷺ) died, Umar insisted he was not dead. Abu Bakr went in, uncovered his face and kissed him, then came out and told the people: whoever worshipped Muhammad, Muhammad is dead; whoever worshipped Allah, Allah is alive and never dies. He then recited Qur'an 39:30 and 3:144.
The same entry as 3667, which gives the scene at the shed of Banu Sa'ida. Some of the Ansar, the Muslims of Medina, said there should be one leader from them and one from the emigrants. Abu Bakr answered that the emigrants of Quraysh were the best family among the Arabs, and told them to choose Umar or Abu Ubayda. Umar answered that they chose Abu Bakr, their chief, the best of them and the dearest of them to the Messenger of Allah (ﷺ), took his hand and pledged, and the people pledged after him.
Anas reports the written rules of zakah that Abu Bakr sent with him to Bahrain, as the Prophet (ﷺ) had laid them down. They set the amounts due on camels and sheep, and for silver one-fortieth (2.5%), with nothing due if a man has only a hundred and ninety dirhams.
Zayd ibn Thabit reports that after many who knew the Qur'an by heart were killed at Yamama, Abu Bakr asked him to gather the Qur'an into one volume, reminding him that he used to write down the revelation for the Messenger of Allah. Zayd collected it from written pieces and from the memories of men, and the finished copy passed from Abu Bakr to Umar and then to Hafsa.
Ali's son Ibn al-Hanafiyya asked his father who the best of people were after the Messenger of Allah (ﷺ). Ali answered Abu Bakr, then Umar. Afraid that Ali would name Uthman next, he asked: then you? Ali replied that he was only a man among the Muslims.
In a long report from Aisha, Ali, who had not given his pledge during the six months of Fatima's life after the Prophet's (ﷺ) death, seeks reconciliation with Abu Bakr once she has died. He sends for Abu Bakr, and Abu Bakr comes to him. Ali says the family know Abu Bakr's excellence and what Allah has given him, and do not envy it, but that Abu Bakr had not consulted them, and they had thought they had a right in the matter because of their kinship to the Messenger (ﷺ). Abu Bakr weeps and says that kindness to the relatives of the Messenger (ﷺ) is dearer to him than kindness to his own. Ali gives him his pledge of allegiance that afternoon and praises Abu Bakr's right in public. The Muslims are glad and draw close to Ali again. The same report begins with Fatima's request about her inheritance; that part is discussed on the page "Was Fatima angry with Abu Bakr?".
In Aisha's report of Fatima's request about her inheritance, Abu Bakr gives the Prophet's (ﷺ) words and says he will not change what the Messenger (ﷺ) did. Ali then says that they acknowledge Abu Bakr's superiority and mentions their own kinship to the Messenger (ﷺ). Abu Bakr answers that doing good to the relatives of the Messenger (ﷺ) is dearer to him than doing good to his own relatives.
Gives the reigns as Abu Bakr 632-634, Umar 634-644, Uthman 644-656 and Ali 656-661. Abu Bakr was the only one of the four not to die by assassination. Umar was assassinated in 644 while leading the morning prayer. Rebels besieged Uthman's house in Medina and killed him in June 656. Ali was assassinated in 661 by the Kharijite Abd al-Rahman ibn Muljam.
Umar, the second caliph (634-644)
Umar was known for his strength and his justice. The Prophet (ﷺ) told him that whenever Satan meets him on a road, Satan takes another road. He said that among the Children of Israel there were men who were spoken to without being prophets, and that if anyone in this community was like them, it was Umar. As caliph, Umar gathered the people in Ramadan to pray the night prayer behind one reciter. He enlarged the Prophet's (ﷺ) mosque in the same simple style. A few days before he died, he checked that the tax on the land of Iraq was not more than it could bear. He said that if Allah (﷾) kept him alive, the widows of Iraq would never need a man to support them. In 644 he was stabbed as he began the dawn prayer. When his body was laid out, Ali asked Allah's (﷾) mercy for him. Ali said that no one's deeds were dearer to him to meet Allah (﷾) with than Umar's. Ali's daughter Umm Kulthum was Umar's wife.
Sa'd ibn Abi Waqqas reports that the Prophet (ﷺ) said to Umar: by Him in whose hand my life is, whenever Satan meets you on a road, he takes a road other than yours.
Abu Hurayra reports that the Prophet (ﷺ) said that among the Children of Israel before them there were men who were spoken to without being prophets, and that if anyone in this community is like them, it is Umar.
Abd al-Rahman ibn Abd al-Qari reports that Umar found people in the mosque in Ramadan praying the night prayer in scattered groups. He gathered them behind one reciter, Ubayy ibn Ka'b. Later, seeing them pray together, Umar said, "What an excellent new thing (bid'a) this is". He added that the prayer at the end of the night, which they slept through, was better.
Ibn Umar reports that in the Prophet's (ﷺ) lifetime his mosque was built of mud brick, roofed with palm leaves and held up by palm trunks. Abu Bakr left it as it was, Umar enlarged it in the same style, and Uthman rebuilt it on a larger scale in carved stone with a teak roof.
In the long report of Umar's death, Umar names six men to choose among themselves. The choice comes down to Uthman and Ali, and Abd al-Rahman ibn Awf asks each in turn to promise that he will do justice if chosen, and listen and obey the other if the other is chosen. Both agree. Abd al-Rahman pledges to Uthman, and Ali gives him the pledge of allegiance, then all the people of Medina do. The report opens a few days before his death: Umar checks that the tax set on the land of Iraq is not more than it can bear, and says that if Allah keeps him alive, the widows of Iraq will never need a man to support them. Then he is stabbed as he begins the dawn prayer.
Ibn Abbas reports that when Umar's body was laid out and the people prayed for him, Ali came, asked Allah's mercy for Umar and said that no one's deeds were dearer to him to meet Allah with than Umar's. Ali said he had always thought Allah would place Umar with his two companions, because he often heard the Prophet (ﷺ) say: I, Abu Bakr and Umar went; I, Abu Bakr and Umar entered.
Umar divided garments among the women of Medina, and one good garment was left. A man told him to give it to his wife, the granddaughter of the Messenger of Allah (ﷺ), meaning Umm Kulthum, the daughter of Ali. Umar gave it to Umm Salit instead, a woman of the Ansar who had carried water-skins for the Muslims at Uhud.
Gives the reigns as Abu Bakr 632-634, Umar 634-644, Uthman 644-656 and Ali 656-661. Abu Bakr was the only one of the four not to die by assassination. Umar was assassinated in 644 while leading the morning prayer. Rebels besieged Uthman's house in Medina and killed him in June 656. Ali was assassinated in 661 by the Kharijite Abd al-Rahman ibn Muljam.
Uthman, the third caliph (644-656)
Uthman was known for his modesty. The Prophet (ﷺ) said that even the angels show modesty to him. In a garden, the Prophet (ﷺ) gave Abu Bakr, then Umar, the good news of Paradise. When Uthman came, he gave him the same good news, with a trial that would befall him. As Umar was dying, he named six men to choose a caliph among themselves. The choice came down to Uthman and Ali. Each promised to do justice if chosen, and to listen to and obey the other if not. When Uthman was chosen, Ali gave him his pledge, and then all the people of Medina did. As caliph, Uthman had copies made of the Qur'an that Abu Bakr had gathered, and sent one to every region. He rebuilt the Prophet's (ﷺ) mosque on a larger scale. He passed on the Prophet's (ﷺ) words that the best of people are those who learn the Qur'an and teach it. In 656 rebels besieged his house in Medina and killed him. The trial the Prophet (ﷺ) foretold had come.
Aisha reports that the Prophet (ﷺ) was lying down with his thigh uncovered when Abu Bakr and then Umar came in, and he stayed as he was; when Uthman asked to come in, he sat up and set his clothes right. Asked why, he said: should I not show modesty to one to whom even the angels show modesty?
Abu Musa reports that he was guarding the gate of a garden where the Prophet (ﷺ) was. For Abu Bakr and for Umar the Prophet said to let them in with the good news of Paradise. When Uthman came, the Prophet was silent for a moment and then said to let him in with the good news of Paradise, together with a calamity that would befall him.
In the long report of Umar's death, Umar names six men to choose among themselves. The choice comes down to Uthman and Ali, and Abd al-Rahman ibn Awf asks each in turn to promise that he will do justice if chosen, and listen and obey the other if the other is chosen. Both agree. Abd al-Rahman pledges to Uthman, and Ali gives him the pledge of allegiance, then all the people of Medina do. The report opens a few days before his death: Umar checks that the tax set on the land of Iraq is not more than it can bear, and says that if Allah keeps him alive, the widows of Iraq will never need a man to support them. Then he is stabbed as he begins the dawn prayer.
Anas reports that Hudhayfa ibn al-Yaman, alarmed at how the soldiers of Syria and Iraq differed in reciting the Qur'an, urged Uthman to save the community before it differed over its Book as the Jews and Christians had. Uthman borrowed the collected sheets kept by Hafsa, had Zayd ibn Thabit and three men of Quraysh copy them, telling the three that wherever they differed with Zayd they should write in the dialect of Quraysh, in which the Qur'an was revealed, returned the sheets to her, sent a copy to every province, and ordered all other written Qur'anic material to be burned.
Ibn Umar reports that in the Prophet's (ﷺ) lifetime his mosque was built of mud brick, roofed with palm leaves and held up by palm trunks. Abu Bakr left it as it was, Umar enlarged it in the same style, and Uthman rebuilt it on a larger scale in carved stone with a teak roof.
Uthman reports that the Prophet (ﷺ) said: the best of you are those who learn the Qur'an and teach it. The narrator adds that Abu Abd al-Rahman al-Sulami, who passed on this saying from Uthman, taught the Qur'an from the rule of Uthman until the time of al-Hajjaj, and said: that is what has kept me sitting in this seat of mine.
Gives the reigns as Abu Bakr 632-634, Umar 634-644, Uthman 644-656 and Ali 656-661. Abu Bakr was the only one of the four not to die by assassination. Umar was assassinated in 644 while leading the morning prayer. Rebels besieged Uthman's house in Medina and killed him in June 656. Ali was assassinated in 661 by the Kharijite Abd al-Rahman ibn Muljam.
Ali, the fourth caliph (656-661)
Ali was the Prophet's (ﷺ) cousin and the husband of his daughter Fatima. Muslims love him. At Khaybar the Prophet (ﷺ) said he would give the flag to a man who loves Allah (﷾) and His Messenger, and that man was Ali. The Prophet (ﷺ) told him he was to him as Harun was to Musa, except that no prophet comes after. Ali swore that the Prophet (ﷺ) had promised him that only a believer would love him. After Uthman was killed in 656, the people came to pledge to Ali. He refused at first, and accepted only when the Muhajirun and the Ansar pressed him. So he became caliph as the others had, by the pledge of the community.
Describes Ali as the cousin and son-in-law of the Prophet Muhammad (ﷺ), married to his daughter Fatima, and the fourth caliph, who ruled from 656 until his assassination in 661.
Salama reports that Ali had stayed behind at the time of Khaybar because of eye trouble, then set out after the Prophet (ﷺ). On the eve of the conquest of Khaybar the Prophet said that the next day he would give the flag to a man who loves Allah and His Messenger, and that Allah would grant victory under his leadership. Ali arrived unexpectedly, the Prophet gave him the flag, and Allah granted victory under his leadership.
Sa'd ibn Abi Waqqas reports that the Prophet (ﷺ) said to Ali: you are to me as Harun was to Musa, except that there is no prophet after me. Sa'd affirmed emphatically that he heard it himself.
Ali swore by the One who splits the seed and creates life that the Prophet (ﷺ) had promised him that only a believer would love him, and only a hypocrite would hate him.
Al-Tabari records that after Uthman was killed the people thronged to Ali and asked to pledge to him, saying they feared for Islam. Ali at first declined, and the people raised their voices and urged him until he accepted.
Describes how, after Uthman was killed, a delegation of the Muhajireen and the Ansar asked Ali to accept the caliphate and he refused. The companions sent the delegation back to press him harder, and he accepted on conditions of his own. The Muhajireen, the Ansar and the people then took the oath of allegiance to him. Razwy says the community of Muhammad (ﷺ) "drafted" Ali, and quotes Gibbon that he declared he had rather serve than reign.
How Ali ruled, and how he died
As caliph, Ali told the people of Iraq to judge as they used to judge, because he disliked disagreement. He wished to work until the people united, or until he died as his companions had died. He chose unity over a break with the past. He ruled for about four and a half years. In January 661 Abd al-Rahman ibn Muljam struck him with a poisoned sword in the mosque of Kufa, during the morning prayer. Ibn Muljam was a Kharijite, one of the group that had broken away from Ali and fought him. The blow was fatal. Muslims mourn him.
Ubayda reports that Ali told the people of Iraq to judge as they used to judge, because he disliked disagreement, until the people united as one group or he died as his companions had died.
Describes how, after Uthman was killed, a delegation of the Muhajireen and the Ansar asked Ali to accept the caliphate and he refused. The companions sent the delegation back to press him harder, and he accepted on conditions of his own. The Muhajireen, the Ansar and the people then took the oath of allegiance to him. Razwy says the community of Muhammad (ﷺ) "drafted" Ali, and quotes Gibbon that he declared he had rather serve than reign.
Describes how Abd al-Rahman ibn Muljam, a Kharijite, struck Ali with a poisoned sword. It was the morning of 19 Ramadan 40 AH, in the great mosque of Kufa, as Ali rose from prostration in the prayer. The blow was fatal. Razwy writes that no one questions that Ibn Muljam killed Ali, and says Ibn Muljam had escaped when the Kharijites were defeated at Nahrawan; the main account in al-Tabari instead has him plotting in Mecca to avenge those killed there.
Al-Hasan, the peacemaker
After Ali's death the people pledged to his son al-Hasan, who ruled for about six months. Then he chose peace over war to unite the Muslims. The Prophet (ﷺ) had foretold it. In Sahih al-Bukhari he stood on the pulpit with al-Hasan beside him. He said: this son of mine is a sayyid, a noble leader. Allah (﷾) may make peace through him between two great groups of Muslims. The Prophet (ﷺ) loved him and asked Allah (﷾) to love him. Scholars such as Ibn Kathir and al-Qadi Iyad count al-Hasan's months as completing the thirty years.
Al-Hasan al-Basri reports that al-Hasan ibn Ali led armies like mountains against Mu'awiya, and Amr ibn al-As warned that they would not turn back until they had killed their opponents. Mu'awiya asked who would be left to care for the people, their women and their children if the two sides destroyed each other, and sent two men of Quraysh to offer peace. To every condition al-Hasan asked for they answered that they would stand guarantee for it, and al-Hasan made peace with Mu'awiya. The narrator then recalls the Prophet's (ﷺ) words from the pulpit about al-Hasan making peace between two great groups of Muslims.
Al-Bara reports that he saw the Prophet (ﷺ) carrying al-Hasan on his shoulder and saying: O Allah, I love him, so love him.
Explains that the thirty years of the caliphate of prophecy are counted as the rule of Abu Bakr, Umar, Uthman and Ali, together with the six-month caliphate of al-Hasan ibn Ali, and names Ibn Kathir (al-Bidaya), al-Qadi Iyad (al-Shifa), Ibn Hajar al-Haytami and Ibn Abi al-'Izz among the scholars who say so.
Leadership and the Prophet's (ﷺ) family
The Prophet (ﷺ) praised in advance the peace by which his own grandson al-Hasan gave up rule for the sake of unity. Their honour is real, and it does not depend on rule.
Al-Hasan al-Basri reports that al-Hasan ibn Ali led armies like mountains against Mu'awiya, and Amr ibn al-As warned that they would not turn back until they had killed their opponents. Mu'awiya asked who would be left to care for the people, their women and their children if the two sides destroyed each other, and sent two men of Quraysh to offer peace. To every condition al-Hasan asked for they answered that they would stand guarantee for it, and al-Hasan made peace with Mu'awiya. The narrator then recalls the Prophet's (ﷺ) words from the pulpit about al-Hasan making peace between two great groups of Muslims.
Al-Bara reports that he saw the Prophet (ﷺ) carrying al-Hasan on his shoulder and saying: O Allah, I love him, so love him.
Perspectives
Some Muslims believe the Prophet (ﷺ) named Ali alone as his successor
Some Muslims, from love of Ali, hold that the Prophet (ﷺ) appointed him as his only successor. They hold that the caliphs before him took what was his right. They bring these arguments.
The Prophet (ﷺ) said: of whomever I am the mawla, Ali is his mawla. This appointed Ali as leader.
Rebuttal
Mawla means close friend or helper. When Buraida disliked Ali, the Prophet (ﷺ) answered that he deserved more. Ali himself later pledged to Abu Bakr and named him the best after the Prophet (ﷺ).
Ali never truly pledged to Abu Bakr, or did so only under pressure.
Rebuttal
In Sahih al-Bukhari, Ali himself sent for Abu Bakr, praised his right and pledged. The Muslims were glad. Ali also named Abu Bakr the best after the Prophet (ﷺ).
The first caliphs took what was Ali's right, so they were not rightly guided.
Rebuttal
The sound report on the thirty years counts them with Ali. Ali served under them, pledged to Uthman, asked Allah's (﷾) mercy for Umar and kept their judgments.
Leadership belongs to the Prophet's (ﷺ) family alone.
Rebuttal
The Prophet (ﷺ) praised in advance the peace by which his own grandson al-Hasan gave up rule for the sake of unity. Ali himself pledged to Abu Bakr and to Uthman, and took office by the pledge of the community. Honour for the family does not depend on rule.
The Islamic perspective
The rightly guided caliphs are Abu Bakr, Umar, Uthman and Ali, and, in the count of scholars such as Ibn Kathir, al-Hasan. Ali pledged to Abu Bakr and to Uthman, praised those before him, kept their judgments and took office the same way.
The Prophet (ﷺ) said the caliphate of prophecy would last thirty years, and the report counts Ali among them.
The Prophet (ﷺ) told us to hold to his Sunnah and the Sunnah of the rightly guided caliphs.
The Prophet (ﷺ) gave Abu Bakr, Umar and Uthman the good news of Paradise.
Abu Bakr had the Qur'an gathered into one volume, and Uthman sent copies of it to every region.
Ali gave his pledge to Abu Bakr and to Uthman.
Ali named Abu Bakr and Umar the best after the Prophet (ﷺ). When Umar died, Ali asked Allah's (﷾) mercy for him.
Ali told the people of Iraq to judge as they used to, because he disliked disagreement.
Ali became caliph by the pledge of the community, after at first declining, and a Kharijite killed him in 661.
Al-Hasan's peace fulfilled the Prophet's (ﷺ) words that Allah (﷾) would make peace through him.
Scholars such as Ibn Kathir and al-Qadi Iyad count al-Hasan's months as completing the thirty years.