Ibn Battuta, the famous Moroccan traveler, visited India during 1333-1342 CE, which corresponds to the reign of Mohammad Bin Tughlaq (1325-1351 CE) of the Delhi Sultanate. Ibn Battuta served as a qadi (judge) in the court and documented his travels in his famous work 'Rihla'. Babar came much later (Mughal period), and Qutub-ud-din Aibak was from the earlier Slave dynasty period.