The Messenger of Allah ﷺ remained in Madinah for nine years without performing the Hajj. Then he announced to the people that he would perform the Hajj, and no one capable of coming, whether riding or on foot, stayed behind. The people hurried to set out with him until he reached Dhul Hulayfah, where Asma bint Umays gave birth to Muhammad bin Abu Bakr. She sent word to the Messenger of Allah ﷺ, and he said, "Bathe, fasten a cloth tightly around yourself, and enter the state of ihram." So she did. Abridged.
أخبرنا محمد بن عبد الله بن عبد الحكم عن شعيب أنبأنا الليث عن ابن الهاد عن جعفر بن محمد عن أبيه
أقام رسول الله ﷺ تسع سنين لم يحج ثم أذن في الناس بالحج فلم يبق أحد يقدر أن يأتي راكبا أو راجلا إلا قدم فتدارك الناس ليخرجوا معه حتى جاء ذا الحليفة فولدت أسماء بنت عميس محمد بن أبي بكر فأرسلت إلى رسول الله ﷺ فقال اغتسلي واستثفري بثوب ثم أهلي ففعلت مختصر