Sahih al-Bukhari, Volume 9, Book 83, Hadith 1 (USC-MSA)

Narrated `Abdullah: A man said, "O Allah's Messenger! 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)

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا جَرِيرٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي وَائِلٍ، عَنْ عَمْرِو بْنِ شُرَحْبِيلَ، قَالَ قَالَ عَبْدُ اللَّهِ قَالَ رَجُلٌ يَا رَسُولَ اللَّهِ أَىُّ الذَّنْبِ أَكْبَرُ عِنْدَ اللَّهِ قَالَ ‏"‏ أَنْ تَدْعُوَ لِلَّهِ نِدًّا، وَهْوَ خَلَقَكَ ‏"‏‏.‏ قَالَ ثُمَّ أَىٌّ قَالَ ‏"‏ ثُمَّ أَنْ تَقْتُلَ وَلَدَكَ، أَنْ يَطْعَمَ مَعَكَ ‏"‏‏.‏ قَالَ ثُمَّ أَىٌّ قَالَ ‏"‏ ثُمَّ أَنْ تُزَانِيَ بِحَلِيلَةِ جَارِكَ ‏"‏‏.‏ فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ تَصْدِيقَهَا ‏{‏وَالَّذِينَ لاَ يَدْعُونَ مَعَ اللَّهِ إِلَهًا آخَرَ وَلاَ يَقْتُلُونَ النَّفْسَ الَّتِي حَرَّمَ اللَّهُ إِلاَّ بِالْحَقِّ وَلاَ يَزْنُونَ وَمَنْ يَفْعَلْ ذَلِكَ‏ يَلْقَ أَثَامًا}‏ الآيَةَ‏.‏

sunnah.com