By the command of Almighty God, Prophet Muhammad (PBUH) appointed the infallible leader like the commander of the faithful, Imam Ali (as), who is devoid of any error or wrong thought, in Ghadir Khome to the guardianship and leadership of the ummah (the nations) for the continuation of the guidance and stability of religion
source : erfan.ir