After spending about a year in Constantinople, he published a German-Turkish dictionary in 1858. Later, he also published various other linguistic works. He also learned some twenty other Turkish languages and dialects. Returning to Budapest in 1861, he received a stipend of a thousand florins from the academy, and in the autumn of the same year, disguised as a Sunni dervish, and under the name of Reshit Efendi, he set out from Constantinople. His route lay from Trebizond on the Black Sea to Tehran in Persia, where he joined a band of pilgrims returning from Mecca, spending several months with them traveling across Central Iran (Tabriz, Zanjan, and Kazvin). He then went to Shiraz, through Ispahan, and in June, 1863, he reached Khorezm (Central Asia). Throughout this time, he succeeded in maintaining his disguise as "Reshit Efendi," so that upon his arrival at the Khanate of Khiva he managed to keep up appearances during interviews with Khan Sayyid Muhammad. Together with his band of travelers, he then crossed Bokhara and arrived at Samarkand. Initially, he aroused the suspicions of the local ruler, who kept him in an audience for a full half-hour. Vámbéry managed to maintain his pretences, and left the audience laden with gifts. Upon leaving Samarkand, Vámbéry began making his way back to Constantinople, traveling by way of Herat. There he took leave of the band of dervishes and joined a caravan to Tehran, and from there, via Trebizond and Erzurum, to Constantinople, arriving there in March 1864.