Can muslims only pray in a masjid?
No. It is recommended that Muslim men attend the mosque to pray in congregation all of the five daily prayers. The religion of Islam is a simple religion, that doesn’t order people to perform or do what is over their limitations. An indication of this ease is that a man can pray anywhere that is pure, when the time of prayer is current. However, the ruling to build masjids is to encourage Muslims to meet for congregational payers.