"During the time he was detained and searched, the man said he was asked weird questions including how many times a day he prayed? Was his family religious? And did they have a lot of money?"
Things like that make me laugh and cry. The goverments are insane (I don't mean people, I mean the system they create).
Free advice you won't take until it happens to you. The way you travel with anything that you want to keep or not have examined is to send it to yourself instead. It's inconvenient but so is having to spend 2h hours at the airport yet you're not trying to circumvent that problem and just put up with it.