" As a legal text, the Qur’an reflects its origins in a tribal or clan-based society, particularly on issues concerning inheritance, male guardianship, the validity of a woman’s testimony in court, and polygamy. This is even more obvious in the hadith, the compilation of sayings attributed to the Prophet or documenting his actions. This combination of the Qur’an and the example of Muhammad forms the basis of sharia. The derivation of these legal rules, known as fiqh, is the responsibility of Islamic jurists and takes place on the basis of ijma (consensus). When conflicts of interpretation arise, scholars consult the Qur’an and hadith. "
― Ayaan Hirsi Ali , Heretic: Why Islam Needs a Reformation Now