The Prophet (saw) did not hold a birthday celebration, but when asked about his fasting on Mondays he said that it was the day on which he was born and the day on which revelation first came to him (Sahih Muslim 1162).
- The date of his birth is disputed: the majority follow Ibn Ishaq in giving 12 Rabi' al-Awwal, while others give the 2nd, 8th, 9th, 10th or 17th.
- Scholars disagree on the mawlid, the later custom of marking the birth with gatherings: Ibn Hajar al-Asqalani, al-Suyuti and Abu Shama considered it permissible or good, Ibn Taymiyya spoke of reward for the intention while calling it a later practice, and al-Fakihani, Ibn Baz and Ibn 'Uthaymin called it an unwarranted innovation.
- All sides agree on the duty to love the Prophet (saw), to follow his Sunna and to send blessings on him, and they differ on whether a yearly gathering is a legitimate means.
Introduction
Muslims ask what the Prophet (saw) himself did on his birthday because the question bears on the ruling on the mawlid, the annual commemoration of his birth that is observed in many countries and rejected by some scholars. The sources report almost nothing about any marking of the day of his birth by him, by his Companions (ra) or by the early generations, and what they do report is his fasting on Mondays. The scholars who permit the mawlid and those who reject it both start from this evidence and read it differently.
This answer gives the hadith, the debate about the date, the positions of named scholars with their evidence and the points on which they agree.
What the Prophet (saw) did: the fast of Monday
The relevant report comes from Abu Qatada al-Ansari (ra), who said that the Prophet (saw) was asked about fasting on Monday.
ذَاكَ يَوْمٌ وُلِدْتُ فِيهِ وَيَوْمٌ بُعِثْتُ أَوْ أُنْزِلَ عَلَيَّ فِيهِ
'That is a day on which I was born and on which I was sent, or on which revelation came to me.' (Sahih Muslim 1162)
From this hadith, the Prophet (saw) is reported to have given thanks for the blessing of his birth by fasting on the weekly day, not by a yearly festival. Other hadith show that he used to fast on Mondays and Thursdays because deeds are presented to Allah on those days (Jami' al-Tirmidhi 747, graded sahih by al-Albani). Those who permit the mawlid say that the hadith shows the Prophet (saw) honouring the day of his birth and giving thanks for it. Those who reject it answer that he marked it by a weekly fast and not by a celebration, and that nothing was done by the Companions (ra) in the generations after him.
The date of the birth
The birth took place in the Year of the Elephant, on a Monday, in Makkah, as the sources agree. Ibn Ishaq and a majority of the biographers give 12 Rabi' al-Awwal, and this is the date most commonly used for celebrations. Other dates are reported. Some give 2 Rabi' al-Awwal, others the 8th, which has been preferred by a number of scholars, and others the 10th. The Egyptian astronomer Mahmud Pasha al-Falaki, working from calculations of the calendar, argued for 9 Rabi' al-Awwal, which corresponds to 20 April 571 CE, and many modern writers follow him. The Shi'a tradition usually gives the 17th. Ibn Kathir, in al-Bidaya wa'l-Nihaya, records the 12th as the well-known view without treating it as certain.
The date matters in the debate in two ways. Those who reject the mawlid point out that the Prophet (saw) is also reported to have died on a Monday in Rabi' al-Awwal in 11 AH, and often on the 12th, so that the date is also one of mourning. Those who accept it reply that the joy of his coming is greater and that the celebrations are observed in the spirit of thanks, not of the date's exactness.
The origin of the mawlid
There is no report of a mawlid gathering in the first three generations. Historians such as al-Maqrizi note the celebration of the Prophet's birthday under the Fatimids in Egypt in the fifth century AH, and the first well-known public celebration by a Sunni ruler was held in Irbil in northern Iraq by Muzaffar al-Din Kokburi in the late sixth and early seventh centuries AH, as Ibn Khallikan and others describe. The scholar Ibn Dihya wrote a book on the subject for him. From there it spread across the Muslim world and has become a major social and devotional occasion in many regions, with recitation of the Qur'an, poetry in praise of the Prophet (saw), feeding of the poor and lectures on his biography.
Scholars who permit or recommend it
Several respected scholars considered the mawlid permissible, or good if it is free of forbidden acts. Ibn Hajar al-Asqalani, the commentator on al-Bukhari, is reported by al-Suyuti to have derived it from the hadith of Ashura, in which the Prophet (saw) found the Jews of Madina fasting on the day on which Allah saved Musa (as) and said that the Muslims have more right to Musa (as) than they, and ordered the fast (Sahih al-Bukhari 2004; Sahih Muslim 1130). By analogy, a day on which a great blessing came to the world may be remembered with thanks. Al-Suyuti wrote on it in Husn al-Maqsid fi 'Amal al-Mawlid, and concluded that it consists of gathering people, reciting what is easy of the Qur'an, telling of the Prophet's life and feeding people, which he counted as a good innovation (bid'a hasana). Abu Shama (d. 665 AH), the teacher of al-Nawawi, called it one of the best innovations of his time. Ibn al-Jazari and al-Sakhawi are among others reported to have agreed.
Their wider argument is that not every new practice is blameworthy. They cite the hadith 'whoever establishes a good practice in Islam will have its reward and the reward of those who act on it after him' (Sahih Muslim 1017), and the words of 'Umar (ra) on the congregational night prayer in Ramadan, 'what a good innovation this is' (Sahih al-Bukhari 2010). Some also cite the report in al-Bukhari, in the chapter on foster mothers, that Abu Lahab's punishment is lightened on Mondays because he freed Thuwayba when she brought him news of the birth. Critics reply that the report is a mursal report and that the account rests on a dream that is reported to have been seen by al-'Abbas and is not a basis for a ruling. Contemporary scholars who permit the celebration include Yusuf al-Qaradawi, who held that gatherings of remembrance of the Prophet (saw) are good when they follow the Law, and Sayyid Muhammad ibn 'Alawi al-Maliki, who defended it in Haul al-Ihtifal bi'l-Mawlid al-Nabawi.
Scholars who reject it
Other scholars regarded the mawlid as an innovation. The Maliki jurist al-Fakihani (d. 734 AH) wrote a treatise against it, and al-Shatibi's general approach to innovations in al-I'tisam was taken by later scholars to exclude fixed annual ceremonies without a text. Ibn Taymiyya, in Iqtida' al-Sirat al-Mustaqim, held a middle position: he said that some people do it out of love and honour for the Prophet (saw) and may be rewarded for their intention, but that the early generations did not do it, though they had the same love and greater ability, and it is not part of the way of the early community.
In the twentieth century 'Abd al-'Aziz ibn Baz and Muhammad ibn Salih al-'Uthaymin, and the Permanent Committee for Fatwa in Saudi Arabia, held that it is an innovation, citing the Prophet's (saw) words 'whoever introduces into this affair of ours something that is not part of it will have it rejected' (Sahih al-Bukhari 2697; Sahih Muslim 1718) and 'every innovation is a going astray' (Sahih Muslim 867). They add that love of the Prophet (saw) is shown by obeying him and not by instituting new celebrations. Their opponents reply that the hadith on innovation is to be read as specific to what contradicts the Law, as the Shafi'i jurist al-'Izz ibn 'Abd al-Salam explained in his division of innovations into the obligatory, forbidden, disliked, recommended and permissible, and that the mawlid, as a gathering for good, falls under the latter.
Where the scholars agree
Both sides accept that loving the Prophet (saw) is part of faith, as in the hadith that no one has faith until the Prophet (saw) is dearer to him than his family and all people (Sahih al-Bukhari 15; Sahih Muslim 44). They agree that sending blessings on him is commanded (33:56), that his biography should be taught and that any gathering must be free of forbidden things, such as mixing that the Law prohibits, extravagance, or beliefs not in the Qur'an and Sunna, which the supporters of the mawlid also condemn. The disagreement is whether a yearly gathering is a good means or an addition to the religion.
Conclusion
The sources show that the Prophet (saw) fasted on Mondays, in part because it was the day of his birth, and they do not show a birthday celebration by him or the Companions (ra). The date is disputed, with the 12th of Rabi' al-Awwal the most common choice. Scholars from the classical period to the present have disagreed over the mawlid, some holding it good, some permissible with conditions and some an innovation, each with evidence from the hadith. All agree that love of the Prophet (saw) must show itself in following him.
References
Qur'an 33:56
Sahih al-Bukhari 15, 2004, 2010, 2697; Sahih Muslim 44, 867, 1017, 1130, 1162, 1718; Jami' al-Tirmidhi 747 (graded sahih by al-Albani)
Al-Suyuti, Husn al-Maqsid fi 'Amal al-Mawlid
Ibn Taymiyya, Iqtida' al-Sirat al-Mustaqim
Ibn Kathir, al-Bidaya wa'l-Nihaya
Al-Shatibi, al-I'tisam
Ibn Khallikan, Wafayat al-A'yan
Marion Holmes Katz, The Birth of The Prophet Muhammad: Devotional Piety in Sunni Islam (Routledge, 2007)