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, when it is He who created you."I said, "That is indeed a grave sin." Then I asked, "Which is next?"He said, "That you kill your child for fear that he will eat with you."I asked, "Then which?"He answered, "That you commit adultery with your neighbor's wife."

Azami 227

Sahih

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

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

الأعظمي 227صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Shirk is among the greatest of sins
Numbering
Jami al-Kamil 227 (2nd edition)
Azami 227