Ibn Mas’ud said, “O Messenger of Allah, what is the greatest sin?” The Prophet ﷺ said, “To set up a partner alongside Allah, although He alone created you.” He said, “What is next?” The Prophet said, “To kill your child, fearing he will eat with you.”
Ṣaḥīḥ al-Bukhārī 6001