In his later years, he also showed interest in mysticism, though this never formed a significant part of his thought. He died in Herat (Afghanistan) in 1209 (606 AH), where his tomb is still venerated today. Many believe he was poisoned by the Karrāmīyah.