Question:
Who is the guardian (wali) of a woman who has no close male relative?
Answer:
The judge (qadi) of the area, or a reliable scholar, will be her guardian.
Aisha (may Allah be pleased with her) narrates that the Messenger of Allah ﷺ said:
أيما امرأة نكحت بغير إذن وليها فنكاحها باطل فنكاحها باطل فنكاحها باطل فإن دخل بها فلها مهرها بما استحل من فرجها فإن تشاجروا فالسلطان ولي من لا ولي له
Any woman who marries without the permission of her guardian, her marriage is invalid, her marriage is invalid, her marriage is invalid. If the man consummates the marriage with her, then she will receive her dower in return for what he made lawful of her private part. And if they (the guardians other than the father) dispute, then the ruler of the time is the guardian of the one who has no guardian.
Imam al-Tirmidhi (may Allah have mercy on him) and Hafiz Ibn Asakir (may Allah have mercy on him) graded this hadith hasan (good), while Imam Ibn al-Jarud (may Allah have mercy on him), Imam Abu Awana (may Allah have mercy on him), Imam Ibn Khuzaymah (may Allah have mercy on him), Imam Ibn Hibban (may Allah have mercy on him), Hafiz al-Bayhaqi (may Allah have mercy on him), Hafiz Ibn al-Jawzi (may Allah have mercy on him) and Imam al-Hakim (may Allah have mercy on him) graded it sahih (authentic).
On the basis of this hadith, it can be said that for a woman who has no male among her relatives, the judge (qadi), the ruler, or a reliable religious scholar can become her guardian.