Why did Islam divided into Sunni and Shia? What were the consequences of it? WILL GIVE BRAINLIEST

After the death of the prophet Muhammad, Islam spread across the Near East and North Africa. However, Muhammad’s death divided the community of believers in Medina. In a brief essay, explain why Islam divided into Sunni and Shia and the consequences of that division.