Abu Hurayrah (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "Allah, the Almighty, said: 'Of all the associates, I am the most able to dispense with association. If anyone does a deed in which he associates anyone else with Me, I shall abandon him to what he associates with Me.'"
شرح الحديث :
The Prophet (may Allah's peace and blessings be upon him) reports from his Lord – which is called a Qudsi Hadīth – that He rejects deeds that involve associating partners with Him by way of ostentation or otherwise. Indeed, Allah accepts only what is done solely for His sake.