Sure Aal-i-Imraan

3:153

۞ إِذْ تُصْعِدُونَ وَلَا تَلْوُۥنَ عَلَىٰٓ أَحَدٍۢ وَٱلرَّسُولُ يَدْعُوكُمْ فِىٓ أُخْرَىٰكُمْ فَأَثَٰبَكُمْ غَمًّۢا بِغَمٍّۢ لِّكَيْلَا تَحْزَنُوا۟ عَلَىٰ مَا فَاتَكُمْ وَلَا مَآ أَصَٰبَكُمْ ۗ وَٱللَّهُ خَبِيرٌۢ بِمَا تَعْمَلُونَ

Als ihr fortlieft und euch nach niemandem umdrehtet, während der Gesandte euch von hinten her rief. Da belohnte Er euch mit Kummer für (den) Kummer (des Propheten), damit ihr weder traurig wäret über das, was euch entgangen war, noch über das, was euch getroffen hatte. Und Allah ist Kundig dessen, was ihr tut.

Tafsir 3:153

Remember, O believers, when you ran away on the day of Uḥud, when failure came upon you because you went against the command of the Messenger. None of you looked at anyone else, and the Messenger called you from behind, between you and the idolaters, saying, ‘Come to me, servants of Allah! Come to me, servants of Allah!’ Allah repaid you for this with pain and distress, followed by pain and distress: first because of the victory and gains of war you lost; and then with the rumour that the Prophet had been killed that spread among you. Later you came to know that the Prophet had not been killed, so that you would not grieve about the victory and gains of war that you lost, or the deaths and wounds that you received, as a way of making misfortune and pain easier on you. Allah is aware of everything you do and of everything in your hearts.