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. The Messenger of Allah (peace and blessings be upon him) used to appoint leaders for people in this manner.