Abdullah bin Masud reported,

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

Bukhari 7520

Sahih

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

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

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

البخاري 7520صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
His saying, "So do not set up equals to Allah"
Numbering
Darussalam 7520
Bukhari 7520