Imam Cafer Sadık (a.s): There are four interpretations of repenting in a dream:
1-To regret the sin
2-For God's sake
3-The path to the afterlife
4-Saadet.
Ibn Sirin: Seeing that you repent; It is a sign that you will regret all your sins, that you will act in ways that will please Allah, that you will turn your back on this world and dedicate yourself to the afterlife.