During Ma'mun's reign several scholars, such as al-Biruni, resided in Khwarazm, and in fact one of Mahmud's demands upon the shah was that several of them be sent to him.
During Ma'mun's time, scholars like al-Biruni were present in Khwarazm. One of Mahmud's requests to the shah involved sending some of them to him.