[Machine] Regarding the Prophet ﷺ, the guardian of the marriage contract is the husband, and this is not certain. And Ibn Lahia is not a reliable source for this. And Allah knows best.
عَنِ النَّبِيِّ ﷺ وَلِيُّ عَقْدِ النِّكَاحِ الزَّوْجُ وَهَذَا غَيْرُ مَحْفُوظٍ وَابْنُ لَهِيعَةَ غَيْرُ مُحْتَجٍّ بِهِ وَاللهُ أَعْلَمُ