حَدَّثَنَا حُمَيْدُ بْنُ أَبِي مَخْلَدٍ الْوَاسِطِيُّ، ثنا مُحَمَّدُ بْنُ الصَّبَّاحِ الْجَرْجَرَائِيُّ، ثنا مَعْمَرُ بْنُ سُلَيْمَانَ الرَّقِّيُّ، عَنْ حَجَّاجٍ، عَنْ عَطَاءٍ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ: «لَا نِكَاحَ إِلَّا بِوَلِيٍّ، وَالسُّلْطَانُ وَلِيُّ مَنْ لَا وَلِيَّ لَهُ»
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "There is no marriage without a guardian (wali), and the ruler (sultan) is the guardian of the one who has no guardian."