Mosques often have fountains or other facilities for washing in their entrances or courtyards , so that people can perform the washing ritual before prayer . As ritual purification precedes all prayers , mosques often have ablution fountains or other facilities for washing in their entryways or courtyards .