If a scholar had exhausted Qur’an, hadith, qiyas, and ijma, then and only then could he move on to the final stage of ethical and legislative thinking, ijtihad, which means “free independent thinking based on reason.” Scholars and judges could apply this type of thinking only in areas not derived directly from revelation or covered by established precedents.