Besides being unfair, it can also be otherwise bad for the organization. In tech startups, we talk about innovation and ideas, and one of the places that comes from is combining knowledge from different backgrounds (in multiple senses). If a startup started with two people who then only hired people like themselves, they're restricting the likelihood of good ideas that they wouldn't have thought of themselves.
Maybe you wanted an outlet to air your grievances or vent your frustration with past experiences that you might have had with individuals from the Muslim community, which is totally understandable, but still my argument holds true and you're painting with a broad brush here.
I wouldn't even know where to begin having a conversation with such a thing.
This concern should have been addressed, if it really materially affects performance on the team, and this is a big IF, in the dreaded cultural fit part of the interview and not like that where they openly discriminate against him because of his religious background.
so its just not an excuse