It is enough for man to say sincerely that he repents to Allah for his sins and mistakes, ask forgiveness from Allah and pledge not to repeat them again. Allah says:
But if anyone repents after his wrongdoing and amends his conduct, Allah will turn towards him. Allah is Ever-Forgiving and Most Merciful. (Surat al-Ma’ida: 39)