According to the Labour law, even if you resign and cancel your RP, you will face a 2 year ban. If you intend to return to Qatar before 2 years, you need an NOC. However if you want to work for your Old sponsor/Company, then the ban is not applicable.