There are three main sources of law. Customs, judicial precedence, and legislation. The Custom as a source of law is very important in all legal systems because it is beyond doubt that they appeared before the law. They came with the society. They are regarded as the founding stone of the legal system and the basis of law. Subsequently, the growth of society leads to the diminishing value of customs.
A Judicial precedent is the source of law where past decisions create law for Judges to refer back to for guidance in future cases.
The legislation is a source of law that consists of the declaration of legal rules by a competent authority. it is laying down of legal rules by a sovereign or subordinate legislator.