Prophet Muhammad ﷺ said: “The (whole) earth has been made a mosque (or a place of prayer) and a means of purification for me, so wherever a man of my ummah may be when the time for prayer comes, let him pray.”(Sahih al-Bukhari 438)