Abdullah bin Masud reported,

When this verse was revealed, "Those who believed and did not mix their belief with wrongdoing" [Anam 6:82], it weighed heavily on the companions of the Messenger of Allah ﷺ. They said, "Which of us has not mixed his belief with some wrongdoing?"The Messenger of Allah ﷺ said, "It is not what you think. Have you not heard what Luqman said to his son, 'Indeed, associating others with Allah is a great wrongdoing' [Luqman 31:13]?"

Bukhari 4776

Sahih

حدثنا قتيبة بن سعيد حدثنا جرير عن الأعمش عن إبراهيم عن علقمة

عن عبد الله رضي الله عنه قال

لما نزلت هذه الآية {الذين آمنوا ولم يلبسوا إيمانهم بظلم} شق ذلك على أصحاب رسول الله ﷺ وقالوا أينا لم يلبس إيمانه بظلم فقال رسول الله ﷺ إنه ليس بذاك ألا تسمع إلى قول لقمان لابنه {إن الشرك لظلم عظيم}

البخاري 4776صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
Do not associate anything with Allah, for indeed shirk is a great injustice
Numbering
Darussalam 4776
Bukhari 4776