The Muqadimmah is an early Muslim view of 'universal history', or what is now called sociology. It was written by Ibn Khaldun. A quote:
"All records, by their very nature, are liable to error...
These "laws" were presumably those of Islam, including the process of ijtihad, which Muslims applied universally to science, law, history and politics.
See also: Ibn Khaldun, early Muslim sociology[?]