Abdullah bin Masud reported,

When the verse "Those who believed and did not mix their faith with wrongdoing" [Anam 6:82] was revealed, the companions of the Messenger of Allah ﷺ said, "Which of us has not wronged himself?" So Allah عز وجل revealed, "Indeed, associating others with Allah is a great wrongdoing" [Luqman 31:13].

Bukhari 32

Sahih

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

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

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

البخاري 32صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Faith
Chapter
Injustice lesser than injustice
Numbering
Darussalam 32
Bukhari 32