The Dua Taught to Abu Bakr
Taught to Abu Bakr for the prayer
اللَّهُمَّ إِنِّي ظَلَمْتُ نَفْسِي ظُلْمًا كَثِيرًا وَلَا يَغْفِرُ الذُّنُوبَ إِلَّا أَنْتَ، فَاغْفِرْ لِي مَغْفِرَةً مِنْ عِنْدِكَ، وَارْحَمْنِي إِنَّكَ أَنْتَ الْغَفُورُ الرَّحِيمُ
Transliteration
Allahumma inni zalamtu nafsi zulman kathiran wa la yaghfirudh-dhunuba illa ant, faghfir li maghfiratan min 'indik, warhamni innaka antal-Ghafurur-Rahim
Meaning
O Allah, I have wronged myself greatly, and none forgives sins but You. So forgive me with forgiveness from You and have mercy on me; You are the Forgiving, the Merciful.
When to say it
Abu Bakr asked for a supplication to make in his prayer and was taught this (Bukhari 834). It may be said in the last sitting, before the salam.
Source
Bukhari 834
More duas like this
Wudu & prayer