Most of those laws were elaborations of basic laws concerning non-Muslims (dhimmis) in the Quran, which does not give much detail about the right conduct with non-Muslims, but it in principle recognises the religion of "People of the Book" (Jews, Christians and sometimes others as well) and securing a separate tax from them that replaces the zakat, which is imposed upon Muslim subjects.
