Muslims always had to follow a rule it is call five pillars. The first pillar is you have to pray 5 times a day. The second pillar is profession of faith. The third pillar is almsgiving. Fasting is the fourth pillar. The final pillar is the pilgrimage and these are the five pillars.