Sahih Bukhari | Volume 6 | Hadith Number 416

Narrated by 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).