as salam alaikum
you should ask forgiveness to Allah and sincerely turn to Him: He is the All-Forgiving. The Qur'an says: "Do not despair of the mercy of Allah. Surely He forgives all sins" (39:53).
If you are remorseful for your mistake and you do not intend to repeat it again, put your full trust in Him and continue to look for His mercy that embraces all things, insh'Allah you will be successful.
With prayers for your success.