In Tirmidh, he had come under the influence of his spiritual mentor Sayyid Barakah, a Shiite leader from Balkh who is buried alongside Timur in Gur-e Amir.