There are several kinds of Walayah: Wila of love or nearness which implies that the household of the prophet are his near relatives and the believers should love them [REF].
According to Hamid Algar, the first definition of the Wali was provided by Abu'l-Qāsem Qošayrī (d.