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.
tirmidhi:3678Muḥammad b. Ḥumayd > Ibrāhīm b. al-Mukhtār > Isḥāq b. Rāshid > al-Zuhrī > ʿUrwah > ʿĀʾishah

that the Prophet ﷺ ordered the closing of all the gates, except for the gate of Abu Bakr. And there is a narration on this topic from Abu Sa'eed.  

الترمذي:٣٦٧٨حَدَّثَنَا مُحَمَّدُ بْنُ حُمَيْدٍ قَالَ حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُخْتَارِ عَنْ إِسْحَاقَ بْنِ رَاشِدٍ عَنِ الزُّهْرِيِّ عَنْ عُرْوَةَ عَنْ عَائِشَةَ

أَنَّ النَّبِيَّ ﷺ أَمَرَ بِسَدِّ الأَبْوَابِ إِلاَّ بَابَ أَبِي بَكْرٍ هَذَا حَدِيثٌ غَرِيبٌ مِنْ هَذَا الْوَجْهِ وَفِي الْبَابِ عَنْ أَبِي سَعِيدٍ