Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah عز وجل has said, 'I am the One most free of need from any partner. Whoever performs a deed in which he associates someone else with Me, I disown him, and the deed belongs to the one he associated with Me.'"

Ibn Majah 4202

Sahih

حدثنا أبو مروان العثماني حدثنا عبد العزيز بن أبي حازم عن العلاء بن عبد الرحمن عن أبيه

عن أبي هريرة

أن رسول الله ﷺ قال قال الله عز وجل أنا أغنى الشركاء عن الشرك فمن عمل لي عملا أشرك فيه غيري فأنا منه بريء وهو للذي أشرك

ابن ماجه 4202صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Showing off and seeking reputation
Numbering
Darussalam 4202
Ibn Majah 4202