Even in countries not worth working in.
In many countries, Once your employer fires you, then you have 7 days to leave the country. Period.
The US/Canada/UK are relatively friendly about this and give a bit more leeway.
Don’t get me started on Indian work permits.
Yes it’s horrible all around. Working in another country is always a risk and on a whim you can get shafted by your employer.
Always have, or start working on a plan B immediately (savings, side project, more money).
And please don’t get started on “I’m not able to do anything else” - because that’s not true and if you think about it there is always unrelated things you csn do to get around this.
As a person who worked in a few countries - I’m always aware or the fact that at any moment below permanent residency, everything could be pulled away.
Please everyone reading about this guy’s fate, never leave your future in the hands of an employer or immigration authorities.
Start working on a plan B and a way out - just in case.
Anything otherwise is just putting your head in the sand.