the five pillars during the ten years between his arrival in medina and his death in 632 ce , muhammad laid the foundation for the ideal islamic state , and by its tenets formed around him a core of committed muslims whose community life was ordered according to the requirements of his new religion .