I heard Abu Waail say, I heard Abdullah bin Masud say...I asked him, "Did you hear it directly from Abdullah?"He replied, "Yes," and he traced it back to the Prophet ﷺ, who said, "No one is more jealous than Allah, and for that reason He has forbidden indecencies, both what is apparent of them and what is hidden. And no one loves praise more than Allah, and for that reason He has praised Himself."
حدثنا محمد بن بشار حدثنا محمد بن جعفر حدثنا شعبة
سمعت أبا وائل قال سمعت عبد الله بن مسعود يقول قلت له أنت سمعته من عبد الله قال نعم ورفعه أنه قال لا أحد أغير من الله ولذلك حرم الفواحش ما ظهر منها وما بطن ولا أحد أحب إليه المدح من الله ولذلك مدح نفسه
Agreed upon [by Bukhari and Muslim]. Muslim also reported it in the Book of Repentance, Chapter on Allah's jealousy and the prohibition of shameful deeds, hadith no. 2760/34, from Muhammad bin Bashshar, and Bukhari, hadith no. 4634, from the hadith of Shubah with the same wording.