verify your contract, it should be indicated, that if ever you are to resign in less than a year, you should pay for the cost of recruitment.

I do not know if this is according to the Qatar Labor Law, but in my cse is is written in my contract.