Ref. No. 1956/44-1872
In the name of Allah the most Gracious the most Merciful
The answer to your question is as follows:
A person whose income includes both halal and haram, if he repays the debt, this payment will be considered from his halal income. And taking this money will be permissible for the creditor too, there will be no suspicion of Haram in it, and there will be no dislike of any kind. Since the wealth you received is not haram, the negative effects of the haram wealth will not be transferred.
And Allah knows best
Darul Ifta
Darul Uloom Waqf Deoband