The Messenger of Allah ﷺ never touched the hand of woman, but he received the oath of allegiance from her. When he received the oath of allegiance from her, she gave it to him, and he said: Go, I have received your oath of allegiance.
عَنْ بَيْعَةِ رَسُولِ اللَّهِ ﷺ النِّسَاءَ قَالَتْ مَا مَسَّ رَسُولُ اللَّهِ ﷺ يَدَ امْرَأَةٍ قَطُّ إِلاَّ أَنْ يَأْخُذَ عَلَيْهَا فَإِذَا أَخَذَ عَلَيْهَا فَأَعْطَتْهُ قَالَ اذْهَبِي فَقَدْ بَايَعْتُكِ