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.