Hadithcore
Sahih al-Bukhari, 4893
sahih

Narrated Ibn `Abbas:

Regarding the saying of Allah: 'And they will not disobey you in any just matter.' (60:12) That was one of the conditions which Allah imposed on The believing) women (who came to take the oath of allegiance to the Prophet).

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ، حَدَّثَنَا وَهْبُ بْنُ جَرِيرٍ، قَالَ حَدَّثَنَا أَبِي قَالَ، سَمِعْتُ الزُّبَيْرَ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، فِي قَوْلِهِ تَعَالَى ‏{‏وَلاَ يَعْصِينَكَ فِي مَعْرُوفٍ‏}‏ قَالَ إِنَّمَا هُوَ شَرْطٌ شَرَطَهُ اللَّهُ لِلنِّسَاءِ‏.‏

References2 variants
In-Book Reference
Book 65, Hadith 413
USC-MSA web (English) reference
Vol. 6, Book 60, Hadith 416 (deprecated numbering scheme)