Abdullah bin Masud reported,

I asked the Prophet ﷺ, "Which sin is greatest in the sight of Allah?"He replied, "That you set up a rival to Allah, while He is the One who created you."I said, "That is indeed a grave sin. 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."

Bukhari 4477

Sahih

حدثني عثمان بن أبي شيبة حدثنا جرير عن منصور عن أبي وائل عن عمرو بن شرحبيل

عن عبد الله قال

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

البخاري 4477صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "So do not set up rivals to Allah while you know"
Numbering
Darussalam 4477
Bukhari 4477