It is narrated from Ibn Sirin (may Allah have mercy on him) that if a man's debt is repaid to him from gambling money, there is no harm.