Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:147Zakariyyāʾ > Abū Usāmah > Hishām b. ʿUrwah from his father > ʿĀʾishah

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

البخاري:١٤٧حَدَّثَنَا زَكَرِيَّاءُ قَالَ حَدَّثَنَا أَبُو أُسَامَةَ عَنْ هِشَامِ بْنِ عُرْوَةَ عَنْ أَبِيهِ عَنْ عَائِشَةَ

عَنِ النَّبِيِّ ﷺ قَالَ قَدْ أُذِنَ أَنْ تَخْرُجْنَ فِي حَاجَتِكُنَّ قَالَ هِشَامٌ يَعْنِي الْبَرَازَ