Abdullah bin Masud reported,

When the verse "Those who believe and do not mix their faith with wrongdoing" [Anam 6:82] was revealed, it weighed heavily on the companions of the Prophet ﷺ. They said, "Which of us has not wronged himself?"The Messenger of Allah ﷺ said, "It is not as you suppose. It is only as Luqman said to his son, 'My son, do not associate anything with Allah. Associating others with Him is indeed a tremendous wrong'" [Luqman 31:13].

Bukhari 6937

Sahih

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

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

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

البخاري 6937صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Demanding repentance from apostates and obstinate disbelievers and fighting them
Chapter
Misinterpreters
Numbering
Darussalam 6937
Bukhari 6937