Conflicts still happen between Muslim nations over religious issues, basically because since the times of Muhammad, there are rival groups that dispute power and religious hegemony. When he died, his knowledge was shared by two groups who disagreed with each other. After that, a lot of conflicts happened, and suffering from both sides, so is difficult to achieve peace even with the majority being Muslim.