In a dream it indicates deliverance from prison. It also indicates obtaining kingship and attaining honor and blessing after enduring an affliction.
Whoever sees in his dream that he gave up immorality will be afflicted with a trial, then he will repent, own a kingdom [property], and obtain blessing and honor. Whoever in his dream repents of a sin that he does not know himself to have committed, it may be feared that he will fall into it, but his outcome will be good. Repentance for an unbeliever is his Islam.