Abu Bakr reported,

Abu Bakr set out for the pilgrimage with the Messenger of Allah ﷺ, and Asma bint Umays was with him. She gave birth to Muhammad bin Abu Bakr at Shajarah. Abu Bakr came to the Prophet ﷺ and informed him. The Messenger of Allah ﷺ instructed him to tell her to perform a ritual bath, then enter the state of consecration for the pilgrimage and do everything the other pilgrims do, except that she should not perform the circumambulation of the House.

Ibn Majah 2912

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا خالد بن مخلد عن سليمان بن بلال حدثنا يحيى بن سعيد أنه سمع القاسم بن محمد يحدث عن أبيه

عن أبي بكر

أنه خرج حاجا مع رسول الله ﷺ ومعه أسماء بنت عميس فولدت بالشجرة محمد بن أبي بكر فأتى أبو بكر النبي ﷺ فأخبره فأمره رسول الله ﷺ أن يأمرها أن تغتسل ثم تهل بالحج وتصنع ما يصنع الناس إلا أنها لا تطوف بالبيت

ابن ماجه 2912صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rites of pilgrimage
Chapter
Woman in postnatal bleeding and the menstruating woman declare ihram for Hajj
Numbering
Darussalam 2912
Ibn Majah 2912