deen2u

deen2u — your one-stop center for Islamic resources: the Holy Quran, Hadith, practices, stories of the Prophets, Q&A, and how to practice Islam.

Companions of the Prophet ﷺ · 4 of 8
علي بن أبي طالب

Ali ibn Abi Talib

The Prophet’s ﷺ cousin and son-in-law, and the fourth caliph
d. 40 AH / 661 CE · Kufa
Relationship to the Prophet ﷺ

First cousin of the Prophet ﷺ, raised in his household from childhood; husband of his daughter Fatimah; father of his grandsons al-Hasan and al-Husayn.

Known for

The first youth to accept Islam, the knight of Khaybar, and a fountain of knowledge and eloquence the later tradition never stopped drawing on.

Caliphate

Fourth caliph, 35–40 AH (656–661 CE)

Their story

Son of the Prophet’s ﷺ protecting uncle Abu Talib, Ali grew up in the Prophet’s ﷺ own house and accepted Islam as a boy of about ten — the first youth to do so. On the night of the Hijrah he took the gravest role of all: sleeping in the Prophet’s ﷺ bed as decoy while the assassins watched the door, then staying behind to return the deposits Makkans had entrusted to the Prophet ﷺ.

In Madinah the Prophet ﷺ gave him Fatimah in marriage — from them come al-Hasan and al-Husayn, and every descendant of the Prophet ﷺ. When the Prophet ﷺ paired each emigrant with a brother among the Ansar, Ali’s standing needed no pact: the Prophet ﷺ told him, in words Bukhari records, “You are from me and I am from you” (Sahih al-Bukhari 2699).

He carried the banner in battle after battle. At Khaybar, after others had tried, the Prophet ﷺ announced he would give the flag "to a man who loves Allah and His Messenger, and whom Allah and His Messenger love" — then called for Ali, prayed over his inflamed eyes, and Khaybar fell at his hands.

Left in charge of Madinah during Tabuk, he asked whether he was being left behind with the women and children; the Prophet ﷺ answered that he held the place to him that Harun held to Musa — except that no prophet would come after him.

Hadith — the flag of Khaybar

On the day of Khaybar the Prophet ﷺ said: "Tomorrow I will give this flag to a man whom Allah and His Messenger love, and who loves Allah and His Messenger — victory will come at his hands." He gave it to Ali, prayed over his ailing eyes, and told him to advance with calm and call them first to Islam.

Sahih al-Bukhari 3009

Contribution to Islam

Ali’s deepest legacy is knowledge: a hafiz and scribe of revelation, among the sharpest judges of the community ("the best judge among you is Ali," the tradition remembers), his rulings, sermons, and aphorisms shaped Islamic law, theology, and Arabic eloquence for every generation after.

He accepted the caliphate in 35 AH, in the shadow of Uthman’s murder, and spent it striving to hold the ummah together through the first civil strife (the battles of the Camel and Siffin) — years all Sunni tradition treats with restraint and respect for all companions involved. He was struck down by a Kharijite assassin while going to Fajr prayer in Kufa, 40 AH.

Battles & campaigns

Drawn from the Quran, the Sahih collections (each hadith citation verified against the copies hosted on this site), and the established sirah literature. Events of the later fitna era are mentioned only briefly, with respect for all the companions — may Allah be pleased with them all.

All companions