Allah commands the believers to eat of the good things and to give thanks (2:172). The Prophet ﷺ said that Allah is Good and accepts only what is good. Earning from lawful sources is part of worship.
O Messagers! Mangez de ce qui est permis et agréable et faites du bien. Car Je sais parfaitement ce que vous faites.
Hadith
Sahih Muslim 1015
Abu Huraira reported Allah's Messenger (ﷺ) as saying:O people, Allah is Good and He therefore, accepts only that which is good. And Allah commanded the believers as He commanded the Messengers by saying: "O Messengers, eat of the good things, and do good deeds; verily I am aware of what you do" (xxiii. 51). And He said: "O those who believe, eat of the good things that We gave you" (ii. 172). He then made a mention of a person who travels widely, his hair disheveled and covered with dust. He lifts his hand towards the sky (and thus makes the supplication): "O Lord, O Lord," whereas his diet is unlawful, his drink is unlawful, and his clothes are unlawful and his nourishment is unlawful. How can then his supplication be accepted?
This is general information, not a fatwa. For your own situation, ask a qualified scholar.
Questions about halal and haram
Why does halal income matter?
Allah commands the believers to eat of the good things and to give thanks (2:172). The Prophet ﷺ said that Allah is Good and accepts only what is good. Earning from lawful sources is part of worship.