Sahih al-Bukhari, Book 4, Hadith 13 (Bukhari 147)

Narrated `Aisha:

The Prophet (ﷺ) said to his wives, "You are allowed to go out to answer the call of nature. "