Given the number of OTs, this one is quite relevant to the topic of housing market.
No more so than buying next to a church or synagogue, honestly. Even if VERY HYPOTHETICALLY, a member of the mosque is a radical, why would they destroy the house next door?
This being said, it might be relevant in a way that the OP hasn’t thought of. Some local bigots might feel moved to attack the mosque or harass the worshipers. (Especially if there’s another war, or unrelated terrorist incident somewhere in the US.)
I’d buy next to a mosque without a moment’s hesitation. If it keeps people like the OP out of the market, guess I can get the property more cheaply 🙂