If you are not working and visited your spouse,do not think Qatari is going to stop you to go your country of residence,unless you did somthing which law of land do not permit.