The Messenger of Allah ﷺ said, "No one loves praise more than Allah , and for this reason He has praised Himself. No one is more jealous than Allah, and for this reason He has forbidden indecencies. No one loves accepting excuses more than Allah, and for this reason He has sent down the Book and sent the messengers."
قال رسول الله ﷺ: ليس أحد أحب إليه المدح من الله عز وجل، من أجل ذلك مدح نفسه، وليس أحد أغير من الله، من أجل ذلك حرم الفواحش، وليس أحد أحب إليه العذر من الله من أجل ذلك أنزل الكتاب وأرسل الرسل.
Muslim narrated it in the Book of Repentance (2760:35) through various routes from Jareer, from Amash, from Malik bin Harith, from Abdul-Rahman bin Yazid, from Abdullah bin Masud, who related the hadith.