Chapter on the Hajj of Children
Man Lā Yaḥḍuruh al-Faqīh|Volume 2|Book 3|Chapter 92
وَ رَوَى أَبَانٌ عَنِ اَلْحَكَمِ قَالَ سَمِعْتُ أَبَا عَبْدِ اَللَّهِ عَلَيْهِ اَلسَّلاَمُ يَقُولُ: «اَلصَّبِيُّ إِذَا حُجَّ بِهِ فَقَدْ قَضَى حَجَّةَ اَلْإِسْلاَمِ حَتَّى يَكْبَرَ وَ اَلْعَبْدُ إِذَا حُجَّ بِهِ فَقَدْ قَضَى حَجَّةَ اَلْإِسْلاَمِ حَتَّى يُعْتَقَ.
Aban narrated from Al-Hakam, who said: I heard Abu Abdullah عليه السلام say: "If a child is taken for Hajj, it does not fulfill the Hajj of Islam when they grow up. Similarly, if a servant is taken for Hajj, it does not fulfill the Hajj of Islam until they are freed."
- Ṣaḥīḥ al-Faqīh, p. 158