Thabit bin Harith reported,

The Jews used to say, whenever a young child of theirs died, "He is a righteous one." Word of this reached the Prophet ﷺ, and he said, "The Jews have lied. There is no soul that Allah creates in the womb of its mother except that it is either wretched or blessed."So Allah the Exalted revealed at that time this verse, "He is most knowing of you when He produced you from the earth and when you were fetuses in the wombs of your mothers. So do not claim purity for yourselves. He is most knowing of those who fear Him" [Najm 53:32].

Azami 13433

Hasan

عن ثابت بن الحارث الأنصاري، قال

كانت اليهود تقول إذا هلك لهم صبي صغير: هو صديق، فبلغ ذلك النبي ﷺ فقال: كذبت يهود، ما من نسمة يخلقها الله في بطن أمه إلا شقي أو سعيد فأنزل الله تعالى عند ذلك هذه الآية: {هو أعلم بكم إذ أنشأكم من الأرض وإذ أنتم أجنة في بطون أمهاتكم فلا تزكوا أنفسكم هو أعلم بمن اتقى}

الأعظمي 13433حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Najm
Section
His saying, "Those who avoid the major sins and immoralities, except for minor lapses. Indeed, your Lord is Wasi in forgiveness. He knows best about you when He produced you from the earth and when you were fetuses in the wombs of your mothers. So do not claim purity for yourselves. He knows best who has attained taqwa."
Numbering
Jami al-Kamil 13433 (2nd edition)
Azami 13433