Sure Al-Hadid

57:23

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

damit ihr nicht betrübt seid über das, was euch entgangen ist, und euch nicht (zu sehr) freut über das, was Er euch gegeben hat. Und Allah liebt niemanden, der eingebildet und prahlerisch ist,

Tafsir 57:23

O people! That is so that you do not grieve over anything you miss out on, and so that you do not show happiness that leads to arrogance over every blessing Allah has given you. Indeed, Allah does not love anyone who is arrogant and boastful over what Allah has granted him.