the Messenger of Allah passed by a woman when she was in her seclusion and had a child with her. She said: "Is there Hajj for this one?'' He said: "Yes, and you will be rewarded.''(sahih) (Using translation from Nasāʾī 2649)
مَرَّ رَسُولُ اللهِ ﷺ عَلَى امْرَأَةٍ وَهِيَ فِي مِحَفَّتِهَا وَمَعَهَا صَبِيٌّ فَقَالَتْ يَا رَسُولَ اللهِ أَلِهَذَا حَجٌّ؟ قَالَ نَعَمْ وَلَكِ أَجْرٌ