Abdullah bin Masud reported,

When the verse "Those who believe and do not mix their faith with wrongdoing" [Anam 6:82] was revealed, the companions of the Prophet ﷺ said, "Which of us has not mixed his faith with wrongdoing?" Then the verse was revealed, "Do not associate anything with Allah. Indeed, association with Him is a great wrongdoing" [Luqman 31:13].

Bukhari 3428

Sahih

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

عن عبد الله قال

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

البخاري 3428صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Saying of Allah Most High, "And We had certainly given Luqman wisdom, that he should be grateful to Allah" to His saying, "Indeed, Allah does not like everyone self-deluded and boastful"
Numbering
Darussalam 3428
Bukhari 3428