Language:
كتاب استتابة المرتدين والمعاندين وقتالهم
88  
Apostates
(1)
Chapter: The sin of the person who ascribes partners in worship to Allah
(1)
باب إِثْمِ مَنْ أَشْرَكَ بِاللَّهِ وَعُقُوبَتِهِ فِي الدُّنْيَا وَالآخِرَةِ
Sahih al-Bukhari 6918

Narrated `Abdullah:

When the Verse: 'It is those who believe and confuse not their belief with wrong (i.e., worshipping others besides Allah): (6.82) was revealed, it became very hard on the companions of the Prophet (ﷺ) and they said, "Who among us has not confused his belief with wrong (oppression)?" On that, Allah's Apostle said, "This is not meant (by the Verse). Don't you listen to Luqman's statement: 'Verily! Joining others in worship with Allah is a great wrong indeed.' (31.13)

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا جَرِيرٌ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ ـ رضى الله عنه ـ قَالَ لَمَّا نَزَلَتْ هَذِهِ الآيَةُ ‏{‏الَّذِينَ آمَنُوا وَلَمْ يَلْبِسُوا إِيمَانَهُمْ بِظُلْمٍ‏}‏ شَقَّ ذَلِكَ عَلَى أَصْحَابِ النَّبِيِّ صلى الله عليه وسلم وَقَالُوا أَيُّنَا لَمْ يَلْبِسْ إِيمَانَهُ بِظُلْمٍ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ إِنَّهُ لَيْسَ بِذَاكَ، أَلاَ تَسْمَعُونَ إِلَى قَوْلِ لُقْمَانَ ‏{‏إِنَّ الشِّرْكَ لَظُلْمٌ عَظِيمٌ‏}‏‏"‏‏.‏
Reference : Sahih al-Bukhari 6918
In-book reference : Book 88, Hadith 1
USC-MSA web (English) reference : Vol. 9, Book 84, Hadith 53
  (deprecated numbering scheme)