Open www.moi.gov.qa then click official documents then enter his ID/RP No. then enter. You can see the status, whether RP is cancelled or not.

He has to wait 2 years to enter to Qatar on visit/residence visa as long as he is not able to provide NOC from previous company.