There is no sound report on the matter, and the question has two possible answers in the sources: the authentic hadith literature does not say that the Prophet (saw) was circumcised at a given time, while some weaker reports say that he was born circumcised.
- Ibn al-Qayyim in Zad al-Ma'ad and Tuhfat al-Mawdud noted that the reports of his being born circumcised are not authentic, and that the reports that his grandfather circumcised him on the seventh day are also weak, so he took the position that the matter is not known with certainty.
- The hadith that circumcision is among the acts of the fitra, along with trimming the moustache and clipping the nails, is in Sahih al-Bukhari and Sahih Muslim, and Ibrahim (as) circumcised himself at the age of eighty.
- Scholars disagree on the ruling: the Shafi'is and Hanbalis hold that it is obligatory for males, while the Hanafis and Malikis hold that it is a confirmed sunnah, and all agree that it is part of the practice of Muslims.
Introduction
The question asks about a detail of the Prophet's life on which the authentic sources are silent, and it is best to say so plainly. The matter has been discussed by scholars of the biography (sira) and of jurisprudence, because it bears on the ruling of circumcision (khitan). The answer therefore sets out the reports, their gradings and what scholars concluded, and then summarises the rulings on circumcision, for which there is firmer evidence.
It is respectful to avoid going beyond the evidence in matters of the Prophet's body and private life. Early scholars treated detailed claims on this point with caution, and some who wished to honour him with stories were corrected by the hadith critics.
The reports that he was born circumcised
Some narrations state that the Prophet (saw) was born circumcised and with the umbilical cord already cut (makhtun masrur). These are reported with different chains, from Anas, Ibn 'Abbas, Abu Hurayra and others, in works such as al-Tabarani's al-Mu'jam al-Awsat and Abu Nu'aym's Dala'il al-Nubuwwa. In one of them the Prophet (saw) is quoted as saying that among the honours with which Allah honoured him was that he was born circumcised and no one saw his private parts.
The hadith critics have discussed these chains in detail. Ibn al-Qayyim wrote in Zad al-Ma'ad that nothing sound is reported on this and that the reports are not authentic. Al-Dhahabi and Ibn Hajar noted weakness in them, and al-Hakim, who reported one version in his Mustadrak, has been criticised for being lenient. Some later scholars, such as al-Suyuti in his work on the Prophet's special merits, gathered the reports and tried to show that they strengthen each other, while most hadith scholars, such as al-Albani, did not accept that these reports reach the level of an acceptable (hasan) hadith.
The reports that he was circumcised after birth
A different set of reports says that his grandfather 'Abd al-Muttalib circumcised him on the seventh day of his birth and held a feast, giving him the name Muhammad. This is mentioned by some biographers, including Ibn Sa'd in al-Tabaqat in some versions, and again its chain is weak. Ibn al-Qayyim cites both views and says that none of these has a sound basis, and that it is better not to take a firm position on any of them.
It is sometimes said that the Prophet (saw) was circumcised because he was a descendant of Ibrahim (as) and of Isma'il (as), and that the Arabs of Quraysh kept the practice of circumcision from the religion of Ibrahim. This is a reasonable inference but not a report. The Prophet's sons and grandsons, al-Hasan and al-Husayn (ra), are reported in some weak narrations to have been circumcised on the seventh day (al-Bayhaqi), and the practice among the Companions is not in doubt.
The rulings on circumcision
The strongest text is that of Abu Hurayra (ra): the Prophet (saw) said that five acts are of the fitra: circumcision, shaving the pubic hair, trimming the moustache, clipping the nails and plucking the underarm hair (Sahih al-Bukhari and Sahih Muslim). Another text, also in the two Sahihs, says that Ibrahim (as) circumcised himself at the age of eighty with an adze (qadum). This is the Qur'anic reference point, since Allah commands the Prophet (saw) to follow the way of Ibrahim, the upright (16:123). A weaker hadith in Sunan Abi Dawud, from Abu Hurayra, tells a man who had accepted Islam to remove the hair of unbelief and be circumcised, but its chain is weak, according to al-Albani.
On the ruling for men, the Shafi'i school, in the writings of al-Nawawi in al-Majmu', and the Hanbali school, as in Ibn Qudama's al-Mughni, hold that it is obligatory (wajib), and Ibn Qudama gives as a reason that it involves exposing the private parts, which would be unlawful without a duty. The Hanafi and Maliki schools, in al-Marghinani's al-Hidaya and in the writings of Ibn 'Abd al-Barr, hold that it is a confirmed sunnah and one of the signs of the religion (sha'a'ir al-Islam), and that a community that gave it up would be fought in the Hanafi view. Some Hanafi scholars, such as the author of al-Hidaya, say that it is a sunnah which a man should not leave. Ibn al-Qayyim in Tuhfat al-Mawdud discusses the benefits and the ages at which it can be done, noting that the time is not fixed by a sound text, and the Companions' practice was to do it in childhood.
On the timing, the jurists say that no sound text fixes the age. Those who hold it obligatory say that the duty becomes binding at puberty, when a person becomes responsible, and many say that it is best done in childhood while healing is easy and the child is not ashamed. A new convert who is an adult and fears for his health from the operation is excused according to most jurists, since the rules of Islam remove hardship (22:78), and a competent doctor should do it. This is why the absence of a report about the Prophet's own circumcision does not weaken the ruling.
On the question of females, the classical books mention that some of the Shafi'i and Hanbali scholars regard it as recommended or obligatory for women, based on a weak report of Umm 'Atiyya (Sunan Abi Dawud, which Abu Dawud himself called weak). Contemporary scholars differ on the ruling, and many of them, including the Egyptian Dar al-Ifta and scholars of al-Azhar, have said that practices that harm women, as in female genital cutting as it is practised in some countries, are not permitted and have no sound basis in the Sunnah. Medical advice is part of the ruling on any such practice in Islam, and the general principle is that harm must be removed.
Conclusion
The sources do not give a firm answer on whether the Prophet (saw) was born circumcised or circumcised in childhood, and the leading scholars of hadith concluded that the reports on both sides are weak. What is certain is that circumcision of males is part of the fitra and the practice of Ibrahim (as), and the schools differ only in whether it is obligatory or a confirmed sunnah. The best course is to hold firmly to what is authentic and to leave the rest unknown.
References
The Qur'an: 16:123.
Sahih al-Bukhari and Sahih Muslim: the hadith of the five acts of the fitra and of Ibrahim and the adze; Sunan Abi Dawud on circumcision.
Ibn al-Qayyim, Zad al-Ma'ad and Tuhfat al-Mawdud bi Ahkam al-Mawlud.
Al-Nawawi, al-Majmu'; Ibn Qudama, al-Mughni; al-Marghinani, al-Hidaya.
Ibn Hajar, Fath al-Bari, the chapter on circumcision.
Al-Albani, Silsilat al-Ahadith al-Da'ifa.