When you finish the prayer, seek forgiveness. The Prophet ﷺ would say “Astaghfirullāh” three times, then: “Allāhumma anta-s‑Salām, wa minka-s‑salām, tabārakta yā Dha-l‑Jalāli wal‑Ikrām.” (Muslim). It mends any shortcoming in the prayer.

العربية: عن ثوبان رضي الله عنه قال: كان رسول الله ﷺ إذا انصرف من صلاته استغفر ثلاثًا وقال: «اللهم أنت السلام ومنك السلام، تباركت يا ذا الجلال والإكرام». (مسلم).

After the salām, say ‘Astaghfirullāh’ three times, then this dhikr — before the tasbīḥ.