Abdullah bin Masud reported,

When this verse was revealed, "Those who believe and do not mix their faith with wrongdoing" [Anam 6:82], it weighed heavily upon the companions of the Prophet ﷺ. They said, "Which of us has not mixed his faith with wrongdoing?"The Messenger of Allah ﷺ said, "It does not mean that. Have you not heard the words of Luqman, 'Indeed, associating others with Allah is a great wrongdoing' [Luqman 31:13]?"

Bukhari 6918

Sahih

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

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

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

البخاري 6918صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Demanding repentance from apostates and obstinate disbelievers and fighting them
Chapter
Sin of associating partners with Allah and its punishment in this world and the Hereafter
Numbering
Darussalam 6918
Bukhari 6918