The two groups are the Shia Muslims and the Sunni Muslims. Their beliefs differed because one group believed that Muhammad's successor should be someone from his family, while the other group believed that his successor should be chosen by the people.