Abdullah bin Masud reported,

A man asked, "Messenger of Allah, which sin is greatest in the sight of Allah?"He replied, "That you set up a rival to Allah, when it is He who created you."The man asked, "Then which?"He said, "That you kill your child out of fear that he will eat with you."The man asked, "Then which?"He said, "That you commit adultery with your neighbor's wife."Then Allah revealed a verse confirming this, "And those who do not invoke another god alongside Allah, nor kill the soul that Allah has forbidden except by right, nor commit adultery. Whoever does that will meet a penalty" [Furqan 25:68].

Azami 6807

Sahih

عن عبد الله بن مسعود

قال رجل: يا رسول الله أي الذنب أكبر عند الله؟ قال: أن تدعو الله ندا وهو خلقك قال: ثم أي؟ قال: ثم أن تقتل ولدك خشية أن يطعم معك قال: ثم أي؟ قال: ثم أن تزاني حليلة جارك فأنزل الله تصديقها {والذين لا يدعون مع الله إلها واخر ولا يقتلون النفس التي حرم الله إلا بالحق ولا يزنون ومن يفعل ذلك يلق أثاما} [الفرقان: ٦٨].

الأعظمي 6807صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Retaliation and crimes
Chapter
Prohibition of protected blood
Section
Prohibition of killing children out of fear of poverty
Numbering
Jami al-Kamil 6807 (2nd edition)
Azami 6807