Questions like this are fine here -- the development of legal systems is certainly a historical subject.
Edited to add a couple of answers on similar previous questions:
https://www.reddit.com/r/AskHistorians/comments/3vmoea/what_exactly_is_sharia_law/ featuring u/yodatsracist;
and https://www.reddit.com/r/AskHistorians/comments/42ble4/how_much_of_the_stories_about_muslims_and/ featuring u/cptbuck