Abdullah bin Masud reported,

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

Muslim 257

Sahih

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

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

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

مسلم 257صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Shirk being the most reprehensible of sins, and an explanation of the greatest sins after it
Numbering
Darussalam 257
Muslim 257