Abdullah bin Masud reported,

He said, I asked the Prophet ﷺ, "Which sin is greatest before Allah?"He replied, "That you set up a rival to Allah, when He is the One who created you."I said, "That is indeed tremendous. Then which?"He said, "That you kill your child out of fear that he will eat with you."I asked, "Then which?"He said, "That you commit adultery with your neighbor's wife."

Azami 12650

Sahih

عن عبد الله

قال سألت النبي ﷺ أي الذنب أعظم عند الله؟ قال: أن تجعل الله ندا وهو خلقك قلت: إن ذلك لعظيم، قلت: ثم أي؟ قال: وأن تقتل ولدك تخاف أن يطعم معك قلت: ثم أي؟ قال: أن تزاني حليلة جارك.

الأعظمي 12650صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And do not kill your children for fear of poverty. We provide for them and for you. Indeed, their killing is ever a great sin."
Numbering
Jami al-Kamil 12650 (2nd edition)
Azami 12650