So judge between them by what Allah has sent down , and do not follow their desires against the truth that has come to you . For each [ community ] among you We had appointed a code [ of law ] and a path , and had Allah wished He would have made you one community , but [ His purposes required ] that He should test you in respect to what He has given you .