A wali (وَلِيّ, walīy; plural أَوْلِيَاء, ʾawliyāʾ), the Arabic word which has been variously translated "master", "authority", "custodian", "protector", is most commonly used by Muslims to indicate an Islamic saint, otherwise referred to by the more literal "friend of God".
When the Arabic definite article al (ال) is added, it refers to one of the names of God in Islam, Allah – al-Walī (الْوليّ), meaning "the Helper, Friend".
In the traditional Islamic understanding of saints, the saint is portrayed as someone "marked by [special] divine favor ... [and] holiness", and who is specifically "chosen by God and endowed with exceptional gifts, such as the ability to work miracles". The doctrine of saints was articulated by Muslim scholars very early on in Islamic history, and particular verses of the Quran and certain hadith were interpreted by early Muslim thinkers as "documentary evidence" of the existence of saints. Graves of saints around the Muslim world became centers of pilgrimage – especially after 1200 CE – for masses of Muslims seeking their barakah (blessing).
Since the first Muslim hagiographies were written during the period when the Islamic mystical trend of Sufism began its rapid expansion, many of the figures who later came to be regarded as the major saints in orthodox Sunni Islam were the early Sufi mystics, like Hasan of Basra (d. 728), Farqad Sabakhi (d. 729), Dawud Tai (d. 777–781), Rabia of Basra (d. 801), Maruf Karkhi (d. 815), and Junayd of Baghdad (d. 910). From the twelfth to the fourteenth century, "the general veneration of saints, among both people and sovereigns, reached its definitive form with the organization of Sufism ... into orders or brotherhoods". In the common expressions of Islamic piety of this period, the saint was understood to be "a contemplative whose state of spiritual perfection ... [found] permanent expression in the teaching bequeathed to his disciples". In many prominent Sunni creeds of the time, such as the famous Creed of Tahawi (c. 900) and the Creed of Nasafi (c.