Disposing of ill-gotten money by giving it in charity

A: Yes, they should dispose of it if they know the exact or approximate amount by spending it on charitable causes. However, it will not be considered a charity in itself; rather, it will merely be considered getting rid of ill-gotten money as a purification for themselves and their property. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.