[Machine] The Prophet ﷺ said, "There is no valid marriage except with the presence of a guardian (wali). If there is no guardian, then seek the intervention of the ruler (sultan). The ruler is the guardian of the one who has no guardian." Al-Qa'nabi narrated it from Ibn Lahi'ah, with the wording of the Hadith of Sulaiman bin Musa.
النَّبِيِّ ﷺ قَالَ لَا نِكَاحَ إِلَّا بِوَلِيٍّ فَإِنْ لَمْ يَكُنْ وَلِيٌّ فَاشْتَجَرُوا فَالسُّلْطَانُ وَلِيُّ مَنْ لَا وَلِيَّ لَهُ وَرَوَاهُ الْقَعْنَبِيُّ عَنِ ابْنِ لَهِيعَةَ عَلَى لَفْظِ حَدِيثِ سُلَيْمَانَ بْنِ مُوسَى