Surah Ghafir, Ayah 75 (40:75)
ذَٰلِكُم بِمَا كُنتُمۡ تَفۡرَحُونَ فِي ٱلۡأَرۡضِ بِغَيۡرِ ٱلۡحَقِّ وَبِمَا كُنتُمۡ تَمۡرَحُونَ ٧٥
Arabic: King Fahd Complex Hafs text.
English translation
75. That was because you had been exulting in the earth without any right (by worshipping others instead of Allâh and by committing crimes), and that you used to rejoice extremely (in your error).
Hilali and Khan (QuranEnc.com)