Ghiyath al-Dunya wa’l-Din Mahmud, in Tirmidh