Surah Al-Qasas

28:16

قَالَ رَبِّ إِنِّى ظَلَمْتُ نَفْسِى فَٱغْفِرْ لِى فَغَفَرَ لَهُۥٓ ۚ إِنَّهُۥ هُوَ ٱلْغَفُورُ ٱلرَّحِيمُ

He said, "My Lord, indeed I have wronged myself, so forgive me," and He forgave him. Indeed, He is the Forgiving, the Merciful.

Tafsir 28:16

Beseeching his Lord and acknowledging his action, Moses said, “O my Lord! I have wronged myself by killing this Copt, so forgive my sin.” So Allah forgave him; indeed He Forgiving to whoever repents from His servants and merciful towards them.