ANSWER:

Allah says: fear Allah to the best of your ability! 

If it is a fact and genuine that they would put you in prison if you were to pray in the masjid, which I truly doubt, you can pray home 

QUESTION: I am a 16y.o practicing muslim alhamdullilah and I live in a country where having beards and praying in mosques(specifically for those who are under 18) is prohibited. If the authorities catch anyone being in a mosque, for example, he might have problems with the law. What shall I do in this situation as I cannot immigrate to a better country until I turn 18?

Prayer, Rulings on mosques |