Ayn-al-Qużāt Hamadānī, also spelled Ain-al Quzat Hamedani or ʿAyn-al Qudat Hamadhani , full name: Abu’l-maʿālī ʿabdallāh Bin Abībakr Mohammad Mayānejī, was a Persian jurisconsult, mystic, philosopher, poet and mathematician who was executed at the age of 33.
Career
Ayn-al-Qużat in Arabic means "the pearl of the judges". As Ayn means the eye or something very valid and Qozat is the plural of Qadi which means Judge. He was born in Hamedan and his ancestors were of Hamedan judges.
He was a disciple of Ahmad Ghazali and devoted of Hallaj.
He became a famous scholar at early ages, and by the time he was thirty he was chosen judge.
Membership
Unlike most of the Sufis who have lived as respected and revered members of their communities, he fell afoul of Caliph in Baghdad and was put to death at the age of thirty three.