The Muqaddimah:

“History, therefore, is firmly rooted in philosophy”

Ibn Khaldun