Islam is more than a religion, it's much more than a religion, it's a way of life, it is a one party political system that has a very elaborate legal system that can put you to death if you leave it.
If intellectual curiosity, professional pride, and ambition are the dominant incentives to research, then assuredly no one has a fairer chance of gratifying them than a mathematician.