رَبَّنَا ٱغۡفِرۡ لَنَا ذُنُوبَنَا وَإِسۡرَافَنَا فِيٓ أَمۡرِنَا وَثَبِّتۡ أَقۡدَامَنَا وَٱنصُرۡنَا عَلَى ٱلۡقَوۡمِ ٱلۡكَٰفِرِينَ.
Our Lord, forgive us our sins and the excess [committed] in our affairs and plant firmly our feet and give us victory over the disbelieving people.
Rabbanaghfir lana dhunubana wa israfana fi amrina wa thabbit aqdamana wanṣurna alalqawmilkafirin.
These verses were revealed after Uhud when rumours spread that the Prophet, Sallallahu ‘alaihi wassalam, had been killed. Allah tells the Companions of previous generations of Believers who were afflicted with trials and tribulations yet remained firm. They knew that sins were a reason why Allah inflicts His slaves with defeat, and so they asked Allah to forgive both their minor sins and their excessive transgression (or major sins). Rather than taking confidence in their own patience, they also asked Allah to make them steadfast and to plant firmly their feet when they confront their enemies. -At-Tabari and others