Islamic ethics (أخلاق إسلامية), defined as "good character," historically took shape gradually from the 7th century and was finally established by the 11th century. It was eventually shaped as a successful amalgamation of the Qur'anic teachings, the teachings of the Sunnah of Muhammad, the precedents of Islamic jurists (see Sharia and Fiqh), the pre-Islamic Arabian tradition, and non-Arabic elements (including Persian and Greek ideas) embedded in or integrated with a generally Islamic structure. Although Muhammad's preaching produced a "radical change in moral values based on the sanctions of the new religion and the present religion, and fear of God and of the Last Judgment", the tribal practice of Arabs did not completely die out. Later Muslim scholars expanded the religious ethic of the Qur'an and Hadith in immense detail.
The foundational source in the gradual codification of Islamic ethics was the Muslim understanding and interpretations of the Qur'an and practices of Muhammad. Its meaning has always been in context of active submission to God (Arabic: Allah), performed by the community in unison. The motive force in Islamic ethics is the notion that every human being is called to "command the good and forbid the evil" in all spheres of life. Muslims understand the role of Muhammad as attempting to facilitate this submission. Another key factor in the field of Islamic ethics is the belief that mankind has been granted the faculty to discern God's will and to abide by it. This faculty most crucially involves reflecting over the meaning of existence. Therefore, regardless of their environment, humans are believed to have a moral responsibility to submit to God's will and to follow Islam (as demonstrated in the Qur'an, [Quran 7:172]).