Wealth taken from a specific owner without right — theft, fraud, cheating in a contract — must be returned to that owner or his heirs, because "do not consume one another's wealth unjustly" (Quran 2:188); if he genuinely cannot be traced, it is given away in charity on his behalf. Wealth gained through a forbidden transaction that the other party entered into willingly (riba, selling alcohol, unlawful work) is not returned to the payer; Allah says of the repentant usurer, "if you repent, you may have your capital sums" (Quran 2:279), and the unlawful surplus beyond that is disposed of in charity without expecting reward for it, simply to be rid of it. Ibn Taymiyyah and others held that a repentant person who is genuinely poor may take from such wealth what he needs rather than destroy it, since destroying wealth is not the aim. What you owned lawfully before or alongside the haram income is untouched, and the Prophet ﷺ said, "Allah is Good and accepts only what is good" (Sahih Muslim 1015) — so the point of clearing it out is to make your future earnings and du'a fit to be accepted.
Q&A · Repentance & Sin
If I repent from earning haram money, do I have to get rid of all of it?
Evidence — the daleel
On deen2u
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.