Sayyiduna Umar (may Allah be pleased with him) said that when there is a group of three people, they should appoint one of them as their leader. That is a leader whom the Messenger of Allah (peace and blessings be upon him) has appointed.
Hadith Referenceصحيح ابن خزيمه / كتاب: المناسك / 2541