Shari’ah is the code of law for the Islamic way of life which Allah swt has revealed for mankind and commanded us to follow. The Qur’an is the main basis of Shari’ah. It states the principles while the sunnah of the Prophet provides the details of their application. For example, the Qur’an says: establish salah, observe sawm, pay zakah, take decisions by consultation, do not earn or spend in wrong ways- but it does not describe how to do these things. It is the sunnah of the Prophet which gives us the details.