When the verse was revealed, "those who believe and do not mix their faith with wrongdoing" [Anam 6:82], the companions said, "Messenger of Allah, which of us does not wrong himself?"He replied, "That is not what is meant. It refers only to shirk. Have you not heard what Luqman said to his son as he counseled him, 'My son, do not associate anything with Allah. Indeed, shirk is a tremendous wrong'" [Luqman 31:13].
لما نزلت: {الذين ءامنوا ولم يلبسوا إيمنهم بظلم} [الأنعام: ٨٢] فقالوا: يا رسول الله! أينا لا يظلم نفسه؟ قال: ليس ذلك، إنما هو الشرك، ألم تسمعوا ما قال لقمان لابنه وهو يعظه: {يبني لا تشرك بالله إن الشرك لظلم عظيم} [لقمان: ١٣].
Bukhari narrated it in the chapters on the prophets (3429), and Muslim in the book of virtues (179–124), both through routes from Amash, from Ibrahim, from Alqama, from Abdullah, who said, so he related it.