احمد بن محمد عن الحسن بن علي بن يقطين عن اخيه الحسين بن علي بن يقطين قال سألت ابا الحسن ع ل كم يصلى على الصبي إذا بلغ من السنين والشهور؟ قال يصلى عليه على كل حال إلا أن يسقط لغير تمام
Ahmad ibn Muhammad from al-Hasan ibn Ali ibn Yaqtin from his brother al-Husayn ibn Ali ibn Yaqtin:
I asked Abu al-Hasan عليه السلام, peace be upon him: “For how old is a child prayed over (for Salat Al Mayyit), if he has reached a certain number of years and months?” Imam عليه السلام said: “The funeral prayer is performed over him in every case, unless he is miscarried before completion (birth).”
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 3, p. 365