Surah Al-Hadid, ayah 23

57:23

لِّكَيۡلَا تَأۡسَوۡاْ عَلَىٰ مَا فَاتَكُمۡ وَلَا تَفۡرَحُواْ بِمَآ ءَاتَىٰكُمۡۗ وَٱللَّهُ لَا يُحِبُّ كُلَّ مُخۡتَالٖ فَخُورٍ ٢٣

Llikaylā ta'saw 'alā mā fātakum walā tafrahū bimā ātākum wallāhu lā yuhibbu kulla mukhtālin fakhūr

In order that you not despair over what has eluded you and not exult [in pride] over what He has given you. And Allāh does not like everyone self-deluded and boastful -