I had come on tourist visa and immigration athourities did ask if I had cash QR5000. As I was taking it from my bag, they told , its fine, and asked me to move on.. However, when i was boarding the flight from Sharjah Airport, they verified that I had cash in hand...

Hope u got ur answer..
Cheers