Ayyubid dynasty
It is believed that the first person to use the title was Saladin of the Ayyubid dynasty, who was also the custodian Al-Aqsa Mosque, and thus also the Custodian of the Three Holy Mosques.