Wa alaikum assalaam. - One has to accept ones sins and feel guilty about it. - Repent and have in mind not to repeat the sin. - Keeping the above two in mind, Seek forgiveness from Allah by saying 'Astaghfirullah' (O Allah forgive me).