لِّكَيْلَا تَأْسَوْا۟ عَلَىٰ مَا فَاتَكُمْ وَلَا تَفْرَحُوا۟ بِمَآ ءَاتَىٰكُمْ ۗ وَٱللَّهُ لَا يُحِبُّ كُلَّ مُخْتَالٍ فَخُورٍ
Likailaa taasaw 'alaa maa faatakum wa laa tafrahoo bimaaa aataakum; wallaahu laa yuhibbu kulla mukhtaalin fakhoor
so you need not grieve for what you miss or gloat over what you gain. God does not love the conceited, the boastful,
so that you do not grieve over what has slipped away from you, nor exult over what he has given you. God does not love anyone arrogant and boastful —
Doctrine here is given for an emotional result. What 57:22 says about every misfortune being recorded in advance is put down so that loss forfeits its power to crush and gain forfeits its power to inflate. The closing pair, mukhtāl fakhūr, marks which sort of gladness is meant, since rejoicing is commanded elsewhere in scripture: the swagger of a man who reads his good fortune as a verdict on himself.