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)
أَنَّ رَسُولَ اللَّهِ ﷺ مَرَّ بِامْرَأَةٍ وَهِيَ فِي خِدْرِهَا مَعَهَا صَبِيٌّ فَقَالَتْ أَلِهَذَا حَجٌّ قَالَ نَعَمْ وَلَكِ أَجْرٌ