I asked the Prophet ﷺ, "Which sin is greatest in the sight of Allah?"He replied, "That you set up a rival to Allah, while it is He 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 answered, "That you commit adultery with your neighbor's wife."
سألت النبي ﷺ: أي الذنب أعظم عند الله؟ قال: أن تجعل الله ندا وهو خلقك قلت: إن ذلك لعظيم، قلت: ثم أي؟ قال: وأن تقتل ولدك تخاف أن يطعم معك قلت: ثم أي؟ قال: أن تزاني حليلة جارك
Bukhari narrated it in the tafsir (4476), and Muslim narrated it in the Faith (86), both of them from Uthman bin Abu Shayba, who said, Jareer narrated to us, from Mansur, from Abu Waail, from Amr bin Shurahbil, from Abdullah bin Masud, and he related it.