Realising that he could no long hope to win, Husayn offered to leave Mawarannahr and go on a pilgrimage to Mecca if Timur spared his life. Tamerlane agreed to these terms, but Husayn was not convinced that he could be trusted. After an unsuccessful attempt to hide from Timur's men Husayn was finally captured and handed over to Timur.