Ayesha reported,

The Prophet ﷺ would take the pledge of allegiance from women only by speaking this verse, "that they will not associate anything with Allah" [Mumtahanah 60:12]. She said, "The hand of the Messenger of Allah ﷺ never touched the hand of any woman except a woman whom he owned in marriage."

Azami 236

Sahih

عن عائشة قالت

كان النبي ﷺ لا يبايع النساء بالكلام بهذه الآية {لا يشركن بالله شيئا} [الممتحنة: ١٢]. قالت: وما مست يد رسول الله ﷺ يد امرأة قط إلا امرأة يملكها.

الأعظمي 236صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Pledging allegiance to not associating anything with Allah
Numbering
Jami al-Kamil 236 (2nd edition)
Azami 236