It is likely that al-Biruni was essentially a prisoner of Mahmud and was not free to leave. However Mahmud's military excursions into India meant that al-Biruni was taken to that country, and there can have been few experiences that al-Biruni would have enjoyed more.
Ito ay malamang na al-Biruni ay mahalagang isang bilanggo ng Mahmud at noon ay hindi libre sa umalis. Subalit Mahmud ng militar excursions sa Pilipinas sinadya na al-Biruni ay dadalhin sa na bansa, at doon ay maaaring magkaroon ng ilang karanasan na nai-al-Biruni ay mas masaya.