A man said, "O Messenger of Allah ﷺ! Which sin is the greatest in Allah's Sight?" The Prophet ﷺ said, "To set up a rival unto Allah though He Alone created you . " The man said, "What is next?" The Prophet ﷺ said, "To kill your son lest he should share your food with you." The man said, "What is next?" The Prophet said, "To commit illegal sexual intercourse with the wife of your neighbor." So Allah revealed in confirmation of this narration:-- 'And those who invoke not with Allah, any other god. Nor kill, such life as Allah has forbidden except for just cause nor commit illegal sexual intercourse. And whoever does this shall receive the punishment.' (25.68)
رَجُلٌ يَا رَسُولَ اللَّهِ أَىُّ الذَّنْبِ أَكْبَرُ عِنْدَ اللَّهِ قَالَ أَنْ تَدْعُوَ لِلَّهِ نِدًّا وَهْوَ خَلَقَكَ قَالَ ثُمَّ أَىٌّ قَالَ ثُمَّ أَنْ تَقْتُلَ وَلَدَكَ أَنْ يَطْعَمَ مَعَكَ قَالَ ثُمَّ أَىٌّ قَالَ ثُمَّ أَنْ تُزَانِيَ بِحَلِيلَةِ جَارِكَ فَأَنْزَلَ اللَّهُ ﷻ تَصْدِيقَهَا {وَالَّذِينَ لاَ يَدْعُونَ مَعَ اللَّهِ إِلَهًا آخَرَ وَلاَ يَقْتُلُونَ النَّفْسَ الَّتِي حَرَّمَ اللَّهُ إِلاَّ بِالْحَقِّ وَلاَ يَزْنُونَ وَمَنْ يَفْعَلْ ذَلِكَ يَلْقَ أَثَامًا} الآيَةَ