The second caliph Umar at one time stopped women from attending mosques , especially at night , because he feared they may be teased by males , so he made them to pray at home . The second caliph Umar at one time prohibited women from attending mosques especially at night because he feared they may be teased by males , so he required them to pray at home .