The Prophet (saw) had six children with Khadija bint Khuwaylid (ra) and one son with Maria al-Qibtiyya (ra). With Khadija (ra) came Qasim, Abdullah, Zaynab, Ruqayya, Umm Kulthum and Fatima (ra), and with Maria came Ibrahim. None of his other wives bore him children. All but Fatima died during his lifetime.
- Khadija (ra): Qasim and Abdullah (sons, who died young), and four daughters, Zaynab, Ruqayya, Umm Kulthum and Fatima.
- Maria al-Qibtiyya (ra): Ibrahim, who died as an infant in 10 AH.
- Other wives: no children from the Prophet (saw); some had children from earlier marriages.
- Scholars differ: on the order and number of the early sons, and on whether Tayyib and Tahir were separate children.
Introduction
The question of the Prophet's children is a matter of historical record, not of belief, and the early biographers agree on the main facts while differing on some details. The reasons it matters are those of any family history: it explains the links between the Prophet (saw) and the Companions such as Uthman and Ali (ra), the line of the Prophet's descendants through Fatima, and the grief of a father who lost most of his children.
This answer lists the Prophet's wives, shows which of them bore him children, names each child with what is known of their lives and notes where the sources differ. The main sources are Ibn Sa'd's al-Tabaqat al-Kubra, Ibn Ishaq as preserved in Ibn Hisham, and the later work of Ibn Kathir and Ibn Hajar.
The wives
The Prophet (saw) married Khadija bint Khuwaylid (ra) first and remained married to her alone until her death in the tenth year of the mission, about three years before the Hijra. After her he married Sawda bint Zam'a, Aisha bint Abi Bakr, Hafsa bint Umar, Zaynab bint Khuzayma, Umm Salama (Hind bint Abi Umayya), Zaynab bint Jahsh, Juwayriyya bint al-Harith, Umm Habiba (Ramla bint Abi Sufyan), Safiyya bint Huyayy and Maymuna bint al-Harith (may Allah be pleased with them all). The Qur'an calls them the mothers of the believers (33:6). Maria al-Qibtiyya (ra) was a woman given to him by the ruler of Egypt; the early historians usually count her as a concubine (surriyya), not a wife, though some count her among his wives.
Children of Khadija (ra)
All the early historians agree that Khadija (ra) bore the Prophet (saw) two or more sons and four daughters. The traditional list, as reported by Ibn Sa'd, is as follows.
Qasim was the eldest son. The Prophet (saw) was called Abu al-Qasim after him. He died as a small child, at about two years old in the common account, though the reports differ.
Zaynab was the eldest daughter. She married her cousin Abu al-As ibn al-Rabi', and moved to Madina after the Hijra, later than her father, after Abu al-As was captured at Badr and she sent her necklace, which had belonged to Khadija (ra), to ransom him. The Prophet (saw) was moved, and the Companions agreed to release him without ransom. She died in 8 AH. She had a son, Ali, who died young, and a daughter, Umama, whom the Prophet (saw) is reported to have carried on his shoulder during prayer (Sahih al-Bukhari and Sahih Muslim).
Ruqayya married Uthman ibn Affan (ra). She migrated with him to Abyssinia and then to Madina, and died in 2 AH, around the time of Badr, when the Prophet (saw) was away.
Umm Kulthum married Uthman (ra) after Ruqayya died, which is why he is called Dhu al-Nurayn, 'the possessor of the two lights'. She died in 9 AH.
Fatima married Ali ibn Abi Talib (ra). Their children were al-Hasan, al-Husayn, Muhsin (who died in infancy according to some reports), Zaynab and Umm Kulthum. She died about six months after the Prophet (saw), and she was the only one of his children to outlive him (Sahih al-Bukhari, Book of Maghazi).
Abdullah was born after the mission began and died in infancy. Some early authors report that he was called al-Tayyib and al-Tahir, as nicknames, and others that Tayyib and Tahir were two further sons. The matter is therefore uncertain, and the total number of sons is given as two or four in different works.
The child of Maria (ra)
Ibrahim was born in Madina in 8 AH, the only child born to the Prophet (saw) after the death of Khadija (ra). He died when he was about a year and a half old, the age differing between reports. When he was dying, the Prophet (saw) wept and said that the eye weeps and the heart grieves, and that they would say only what pleases the Lord, and that they were grieved at his parting (Sahih al-Bukhari 1303, from Anas ibn Malik (ra)). On that day the sun was eclipsed, and people said it had eclipsed because of Ibrahim's death. The Prophet (saw) corrected them, saying that the sun and the moon are signs of Allah and do not eclipse for anyone's death or birth (Sahih al-Bukhari and Sahih Muslim, the Book of Eclipses).
Children of other wives
Several of the Prophet's wives had children from earlier marriages, but none of them bore him any. Umm Salama (ra) had children from her first husband Abu Salama, including Salama, Umar, Zaynab and Durra. Umm Habiba (ra) had a daughter, Habiba, from her first husband. Zaynab bint Khuzayma (ra) had no children, and died within a year or two of the marriage. Aisha (ra) had no children, and the Prophet (saw) is reported to have given her the kunya Umm Abdullah after her nephew Abdullah ibn al-Zubayr. The Prophet (saw) also treated Zayd ibn Haritha (ra) and his son Usama (ra) with great love, but they were not his children, and the Qur'an later made the rule of adoption clear (33:4 to 5, 33:40).
Where the sources differ
The main differences are: the number and order of the sons (two or four), the age of Khadija (ra) at marriage (reports say forty, but some say twenty-eight), whether Fatima was born before or after the mission began (the reports range from five years before to a year or so after), and the age at which Ibrahim died. These are matters for historians, and none touches a point of belief. A minority view found in some Shi'a writings holds that the three elder daughters were Khadija's by an earlier relationship or the daughters of her sister, and that Fatima was the only daughter of the Prophet (saw) by Khadija (ra). The majority of historians, Sunni and many others, hold that all four were their daughter, citing the reports that Uthman (ra) married two daughters of the Prophet (saw).
Conclusion
The Prophet (saw) had six children with Khadija (ra) (Qasim, Abdullah, Zaynab, Ruqayya, Umm Kulthum and Fatima) and Ibrahim with Maria (ra). All died in his lifetime except Fatima, who died within about six months after him. The sources differ on some details, such as the number of the early sons, which do not affect belief.
References
Qur'an 25:74, 33:4 to 6, 33:40
Sahih al-Bukhari 1303 (the death of Ibrahim; narrator Anas); Sahih al-Bukhari and Sahih Muslim, Book of Eclipses and Book of Mosques (Umama carried in prayer); Sahih al-Bukhari, Book of Maghazi (the death of Fatima)
Sunan Abi Dawud, Book of Adab (the Prophet (saw) standing for Fatima; graded sahih by al-Albani)
Ibn Sa'd, al-Tabaqat al-Kubra, volumes on the women of the Prophet's household
Ibn Hisham, al-Sira al-Nabawiyya
Ibn Hajar al-'Asqalani, al-Isaba fi Tamyiz al-Sahaba