Disposing of usurious interests after repenting from taking them

Q: There is a person who did not know that Riba (usury) is unlawful, and he also did not act upon the teachings of Islam, but when he came to know that Riba is unlawful he acted according to the teachings of Islam. The problem is that he still has some money that he earned from the bank as interest. What is the legal ruling concerning him? What is the best way for him to get rid of this unlawful money which he still has? It should be noted that he no longer intends to deposit his money in the bank. We appreciate your advice. May Allah reward you with the best for serving Islam and benefiting Muslims.

A: He has to give this money in charity to the poor and the needy, for he has earned it from usury while he did know that it is unlawful. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.