This is common with overseas contracts. The 2 years stipulation is to ensure he doesnt terminate his contract and work for a competitor. Since it is a 2 year period this may mean they will not offer an NOC if he terminates.

As for the 4 month termination, that seems a bit steep. Most companies here in Doha have a 2 month, and if I am correct the labor law (if he is working for a private company) may state a 1 month notice period, and there should be stipulations for termination.

I dont think I would sign this. It basically says that he can only terminate if the company allows him, and he has to work a 4 month notice period, and on top of that, kiss the NOC goodbye as he cannot work in Qatar for 2 years. He shouls try and negotiate these terms based on labor law.
_____________________________________________________
"Diplomacy is the art of saying 'Nice doggie' until you can find a rock - Will Rogers"