The people used to be one nation, then God sent the prophets as bearers of good news and as warners, and He sent down with them the book with the facts so that they may judge between the people in what they were disputing. But after receiving the proof, the people disputed in it due to animosity between them. God guided those who acknowledged with His permission regarding what they disputed in of the truth. God guides whoever/whomever (He) wishes to a straight path.