scholars and jurists lost their control over Islamic law due to the codification of sharia by the Ottoman Empire in the early 19th century: Obedience and opposition According to scholar Moojan Momen, "One of the key statements in the Qur'an around which much of the exegesis" on the issue of what Islamic doctrine says about who is in charge is based on the verse "O believers! Obey God and obey the Apostle and those who have been given authority [uulaa al-amr] among you" (). For Sunnīs, the expression "those who have been given authority" (uulaa al-amr) refers to the rulers (caliphs and kings), but for Shīʿas it refers to the Imams. According to the British historian and Orientalist scholar Bernard Lewis, this Quranic verse has been elaborated in a number of sayings attributed to Muhammad. But there are also sayings that put strict limits on the duty of obedience. Two dicta attributed to the Prophet and universally accepted as authentic are indicative. One says, "there is no obedience in sin"; in other words, if the ruler orders something contrary to the divine law, not only is there no duty of obedience, but there is a duty of disobedience. This is more than the right of revolution that appears in Western political thought. It is a duty of revolution, or at least of disobedience and opposition to authority. The other pronouncement, "do not obey a creature against his creator," again clearly limits the authority of the ruler, whatever form of ruler that may be. According to the exegetical interpretation of the medieval Sunnī Muslim scholar Ibn Taymiyyah, for this verse "there is no obedience in sin"; that people should ignore the order of the ruler if it would disobey the divine law and shouldn't use this as excuse for revolution because it will spill Muslims' blood. According to Ibn Taymiyyah, the saying "sixty years with an unjust imam is better than one night without a sultan" was confirmed by experience. He believed that the Quranic injunction to "enjoin good and forbid evil" (al-amr bi-l-maʿrūf wa-n-nahy ʿani-l-munkar, found in , , and other verses) was the duty of every state functionary with charge over other Muslims, from the caliph to "the schoolmaster in charge of assessing children's handwriting exercises." Sharia and governance (siyasa) Starting from the late medieval period, Sunni fiqh elaborated the doctrine of siyasa shar'iyya, which literally means governance according