if u entered to doha then only u need exit permit, but if u r spending the above said 2 hours in the airport itself then there is no question coz nobody will Neither ask about your passport or your exit permit.