3:153
إِذْ تُصْعِدُ ونَ وَ لَا تَلْ وُۥنَ عَلَىٰٓ أَحَدٍ وَ ٱل رَّسُولُ يَدْعُو كُمْ فِىٓ أُخْرَىٰ كُمْ فَ أَثَٰبَ كُمْ غَمًّۢا بِ غَمٍّ لِّ كَيْلَا تَحْزَنُ وا۟ عَلَىٰ مَا فَاتَ كُمْ وَ لَا مَآ أَصَٰبَ كُمْ وَ ٱللَّهُ خَبِيرٌۢ بِ مَا تَعْمَلُ ونَ
[Remember] when you [fled and] climbed [the mountain] without looking aside at anyone while the Messenger was calling you from behind. So Allah repaid you with distress upon distress so you would not grieve for that which had escaped you [of victory and spoils of war] or [for] that which had befallen you [of injury and death]. And Allah is [fully] Acquainted with what you do.
57:23
لِّ كَيْلَا تَأْسَ وْا۟ عَلَىٰ مَا فَاتَ كُمْ وَ لَا تَفْرَحُ وا۟ بِ مَآ ءَاتَىٰ كُمْ وَ ٱللَّهُ لَا يُحِبُّ كُلَّ مُخْتَالٍ فَخُورٍ
In order that you not despair over what has eluded you and not exult [in pride] over what He has given you. And Allah does not like everyone self-deluded and boastful -
60:11
وَ إِن فَاتَ كُمْ شَىْءٌ مِّنْ أَزْوَٰجِ كُمْ إِلَى ٱلْ كُفَّارِ فَ عَاقَبْ تُمْ فَ ـَٔاتُ وا۟ ٱلَّذِينَ ذَهَبَتْ أَزْوَٰجُ هُم مِّثْلَ مَآ أَنفَقُ وا۟ وَ ٱتَّقُ وا۟ ٱللَّهَ ٱلَّذِىٓ أَنتُم بِ هِۦ مُؤْمِنُونَ
And if you have lost any of your wives to the disbelievers and you subsequently obtain [something], then give those whose wives have gone the equivalent of what they had spent. And fear Allah, in whom you are believers.