Ibn Khaldun said of Egypt , `` He who has not seen it does not know the power of Islam . ''
Ibn Khaldun was one of the greatest writers of Islam in the Middle Ages .