all people must wash themselves before they pray. mosques often have fountains or other facilities for washing in their entrances or courtyards, so that people can perform the washing ritual before prayer.