Muhammad ﷺ, son of ʿAbdullah son of ʿAbd al-Muttalib, was born in Makkah into the clan of Banu Hashim of the tribe of Quraysh, descendants of Ismaʿil son of Ibrahim. He was born in the Year of the Elephant, around 570 CE, on a Monday (Sahih Muslim 1162), in the month of Rabiʿ al-Awwal according to the well-known reports. His father died before he was born. As a baby he was nursed among the tribe of Banu Saʿd by Halimah. His mother Aminah died when he was six. His grandfather ʿAbd al-Muttalib cared for him until he died two years later, and then his uncle Abu Talib raised him. Allah reminds him: "Did He not find you an orphan and give you shelter?" (93:6).
As a young man he herded sheep for the people of Makkah (Sahih al-Bukhari) and later worked in trade. He was known for his honesty, and people called him al-Amin, "the trustworthy". Khadijah bint Khuwaylid, a noble and wealthy woman, sent him to Syria with her goods; impressed by his character, she proposed marriage. He married her when he was twenty-five; the well-known reports say she was forty. She bore him all his children except Ibrahim. When Quraysh rebuilt the Kaʿbah and the clans quarrelled over who would put the Black Stone back in place, they accepted his judgement: he placed it on a cloth, had a man from every clan lift it together, and set it in place with his own hands.
As he approached forty, he came to love seclusion and would spend nights in worship in the cave of Hira, on a mountain near Makkah. There, in Ramadan, around 610 CE, the angel Jibril came to him and said, "Read!", and revealed the first verses: "Read in the name of your Lord who created…" (96:1–5). He returned home trembling, saying, "Cover me." Khadijah comforted him: "By Allah, Allah will never disgrace you. You keep the ties of kinship, carry the burden of the weak, give to the poor, honour your guests and help people in times of hardship." She took him to her cousin Waraqah ibn Nawfal, who said that this was the same angel Allah had sent to Musa (Sahih al-Bukhari 3).
At first he called people privately. Among the first to believe were Khadijah, Abu Bakr, ʿAli and Zayd ibn Harithah. Then Allah commanded, "Warn your nearest kinsmen" (26:214), and he stood on the hill of al-Safa and called the clans of Quraysh to Allah (Sahih al-Bukhari). His message was clear: worship Allah alone, abandon idols, be truthful, keep family ties and care for the weak. Most of Quraysh rejected him. His own uncle Abu Lahab opposed him, and Surah al-Masad was revealed about him (111:1–5). The weak among the believers were tortured: Bilal was laid on the burning sand, and Sumayyah, the mother of ʿAmmar, became the first martyr of Islam. In the fifth year of prophethood (around 615 CE) a group of Muslims migrated to Abyssinia, where the Christian king, the Najashi, protected them. Quraysh then boycotted Banu Hashim, who were confined in the valley of Abu Talib for about three years.
Around the tenth year of prophethood (about 619 CE), both Abu Talib and Khadijah died, a time remembered as the Year of Sorrow. The Prophet ﷺ went to the town of Taʾif to call its people, but they rejected him and set their youths on him, who pelted him with stones. On his way back, the angel of the mountains offered to crush those who had rejected him between the two mountains of Makkah. He refused, saying: "Rather, I hope that Allah will bring from their descendants people who worship Allah alone and associate nothing with Him" (Sahih al-Bukhari 3231; Sahih Muslim 1795). In these later Makkan years, Allah took him by night from al-Masjid al-Haram to al-Masjid al-Aqsa in Jerusalem (17:1), and from there he ascended through the heavens, met earlier prophets and saw some of the greatest signs of his Lord (53:13–18). On this journey the five daily prayers were made obligatory (Sahih al-Bukhari; Sahih Muslim).
During the Hajj season he met people from Yathrib, who believed. The following year a group of them pledged at al-ʿAqabah to obey him, and the year after a larger group pledged to protect him as they protected their own families. The Muslims began to migrate to Yathrib. Quraysh plotted to imprison him, kill him or drive him out (8:30), and decided to kill him. Allah gave him permission to migrate, and he left with Abu Bakr. They hid in the cave of Thawr for three nights; when the pursuers stood at its mouth, he said, "Do not grieve; Allah is with us" (9:40). They reached Quba and then Yathrib in Rabiʿ al-Awwal of the year 622 CE — the year of the Hijrah, later made year 1 of the Islamic calendar. Yathrib became known as al-Madinah, the City of the Prophet.
In Madinah he built his mosque, joined the emigrants (Muhajirun) and the helpers (Ansar) as brothers, and made a covenant with the city's tribes, including its Jewish tribes. In 2 AH the qiblah was turned from Jerusalem to the Kaʿbah (2:144) and the fast of Ramadan was prescribed. In Ramadan 2 AH (624 CE), at Badr, just over three hundred Muslims faced an army of about a thousand from Quraysh, and Allah gave them victory, supporting them with angels (3:123–126; 8:9). In Shawwal 3 AH (625 CE), at Uhud, the archers left their post against his order; the Muslims suffered heavy losses, his uncle Hamzah was martyred and the Prophet ﷺ himself was wounded (3:152–155). In 5 AH (627 CE) the confederate tribes (al-Ahzab) besieged Madinah with a great army; the Muslims had dug a trench (khandaq), and after a long siege Allah sent a wind and hosts that drove the confederates away (33:9–25).
In Dhul-Qaʿdah 6 AH (628 CE) he set out with about 1,400 companions to perform ʿUmrah. Quraysh stopped them at al-Hudaybiyah; the companions pledged allegiance to him under the tree (48:18), and a ten-year truce was agreed. Though its terms seemed hard, Allah called it a clear victory (48:1), and many people entered Islam in the peace that followed. He sent letters inviting kings and rulers to Islam. When Quraysh's allies broke the truce, he marched on Makkah with about ten thousand men in Ramadan 8 AH (630 CE). The city was taken with almost no fighting. He forgave his former enemies, and he cleared the idols from around the Kaʿbah, reciting: "Truth has come and falsehood has vanished" (17:81) (Sahih al-Bukhari). After this, people entered Allah's religion in crowds (110:1–3).
In Dhul-Hijjah 10 AH (632 CE) he performed his only Hajj after the Hijrah, the Farewell Hajj. At ʿArafah he addressed a great gathering: the lives and wealth of the Muslims are sacred; the usury and blood feuds of the days of ignorance are abolished; fear Allah in the treatment of women; and he was leaving them the Book of Allah, which would keep them from going astray if they held fast to it (Sahih Muslim 1218). At that time Allah revealed: "Today I have perfected your religion for you, completed My favour upon you and chosen Islam as your religion" (5:3). A few months later he fell ill and stayed in the room of ʿAishah, while Abu Bakr led the prayers. He passed away on a Monday in Rabiʿ al-Awwal 11 AH (June 632 CE), at the age of sixty-three, and was buried in that room, which is now within his mosque in Madinah. Abu Bakr told the grieving people: "Whoever worshipped Muhammad, Muhammad has died; and whoever worshipped Allah, Allah is Ever-Living and does not die", and he recited: "Muhammad is only a messenger; messengers have passed away before him" (3:144) (Sahih al-Bukhari).
His life is told in full, chapter by chapter, in the Seerah section of the app.