The Messenger of Allah ﷺ passed by a woman who was in her covered litter. She was told, "This is the Messenger of Allah ﷺ." She took hold of the upper arms of a small boy who was with her and asked, "Does this child have a valid Hajj, Messenger of Allah?"He replied, "Yes, and you will have a reward."
أن رسول الله ﷺ مر بامرأة وهي في محفتها فقيل لها هذا رسول الله ﷺ فأخذت بضبعي صبي كان معها فقالت: ألهذا حج يا رسول الله؟ قال: نعم ولك أجر.
Malik narrated it in Hajj (244) from Ibrahim bin Uqba, from Kurayb, the freedman of Abdullah bin Abbas, from Ibn Abbas, and he related it.Muslim narrated it in Hajj (1336) through Sufyan bin Uyayna, from Ibrahim bin Uqba, with the same chain, that the Prophet ﷺ met a group of riders at Rawha and said, "Who are you people?" They said, "Muslims." Then they said, "Who are you?" He said, "The Messenger of Allah." A woman then lifted a boy up to him and said, "Does this child have to perform Hajj?" He said, (and he related it).He also narrated it in a shortened form through Sufyan, from Muhammad bin Uqba, from Kurayb, with the same chain.