Employer applied a visa to block my entry

I worked in oman more than five years

recently I came back to my home land and leave the job because I wanted to join other company but my previous employer intentionally applied a visa to block my entry in oman please if anyone knows how to deal with this situation?