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:1803Abū al-Walīd > Shuʿbah > Abū Isḥāq > al-Barāʾ

I heard Al-Bara' saying, "The above Verse was revealed regarding us, for the Ansar on returning from Hajj never entered their houses through the proper doors but from behind. One of the Ansar came and entered through the door and he was taunted for it. Therefore, the following was revealed: -- "It is not righteousness That you enter the houses from the back, But the righteous man is He who fears Allah, Obeys His order and keeps away from What He has forbidden So, enter houses through the proper doors." (2.189)  

البخاري:١٨٠٣حَدَّثَنَا أَبُو الْوَلِيدِ حَدَّثَنَا شُعْبَةُ عَنْ أَبِي إِسْحَاقَ قَالَ

سَمِعْتُ الْبَرَاءَ ؓ يَقُولُ نَزَلَتْ هَذِهِ الآيَةُ فِينَا كَانَتِ الأَنْصَارُ إِذَا حَجُّوا فَجَاءُوا لَمْ يَدْخُلُوا مِنْ قِبَلِ أَبْوَابِ بُيُوتِهِمْ وَلَكِنْ مِنْ ظُهُورِهَا فَجَاءَ رَجُلٌ مِنَ الأَنْصَارِ فَدَخَلَ مِنْ قِبَلِ بَابِهِ فَكَأَنَّهُ عُيِّرَ بِذَلِكَ فَنَزَلَتْ {وَلَيْسَ الْبِرُّ بِأَنْ تَأْتُوا الْبُيُوتَ مِنْ ظُهُورِهَا وَلَكِنَّ الْبِرَّ مَنِ اتَّقَى وَأْتُوا الْبُيُوتَ مِنْ أَبْوَابِهَا}  


See similar narrations below:

Collected by Muslim, Bayhaqī
muslim:3026[Chain 1] Abū Bakr b. Abū Shaybah > Ghundar > Shuʿbah [Chain 2] Muḥammad b. al-Muthanná And Ibn Bashhār And al-Lafẓ Ibn al-Muthanná > Muḥammad b. Jaʿfar > Shuʿbah > Abū Isḥāq > al-Barāʾ

When the Ansar performed the Pilgrimage, they did not enter their houses but from behind. A person from the Ansar came and he began to enter from his door but it was said to him (why he was doing something in contravention to the common practice of coming to the houses from behind). Then this verse was revealed." Piety is not that you come to the doors from behind" (ii. 189).  

مسلم:٣٠٢٦حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا غُنْدَرٌ عَنْ شُعْبَةَ ح وَحَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى وَابْنُ بَشَّارٍ وَاللَّفْظُ لاِبْنِ الْمُثَنَّى قَالاَ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ عَنْ شُعْبَةَ عَنْ أَبِي إِسْحَاقَ قَالَ

سَمِعْتُ الْبَرَاءَ يَقُولُ كَانَتِ الأَنْصَارُ إِذَا حَجُّوا فَرَجَعُوا لَمْ يَدْخُلُوا الْبُيُوتَ إِلاَّ مِنْ ظُهُورِهَا قَالَ فَجَاءَ رَجُلٌ مِنَ الأَنْصَارِ فَدَخَلَ مِنْ بَابِهِ فَقِيلَ لَهُ فِي ذَلِكَ فَنَزَلَتْ هَذِهِ الآيَةُ {وَلَيْسَ الْبِرُّ بِأَنْ تَأْتُوا الْبُيُوتَ مِنْ ظُهُورِهَا}  

bayhaqi:10379Abū ʿAmr Muḥammad b. ʿAbdullāh al-Bisṭāmī al-Adīb > Abū Bakr al-Ismāʿīlī > al-Faḍl b. al-Ḥubāb > Abū al-Walīd > Shuʿbah > Abū Isḥāq > al-Barāʾ

I heard Al-Bara' saying, "The above Verse was revealed regarding us, for the Ansar on returning from Hajj never entered their houses through the proper doors but from behind. One of the Ansar came and entered through the door and he was taunted for it. Therefore, the following was revealed: -- "It is not righteousness That you enter the houses from the back, But the righteous man is He who fears Allah, Obeys His order and keeps away from What He has forbidden So, enter houses through the proper doors." (2.189) (Using translation from Bukhārī 1803)   

البيهقي:١٠٣٧٩أَخْبَرَنَا أَبُو عَمْرٍو مُحَمَّدُ بْنُ عَبْدِ اللهِ الْبِسْطَامِيُّ الْأَدِيبُ أنا أَبُو بَكْرٍ الْإِسْمَاعِيلِيُّ أنا الْفَضْلُ بْنُ الْحُبَابِ ثنا أَبُو الْوَلِيدِ ثنا شُعْبَةُ أنا أَبُو إِسْحَاقَ قَالَ

سَمِعْتُ الْبَرَاءَ يَقُولُ كَانَتِ الْأَنْصَارُ إِذَا حَجُّوا فَجَاءُوا لَا يَدْخُلُونَ مِنْ أَبْوَابِ بُيُوتِهِمْ وَلَكِنْ مِنْ ظُهُورِهَا فَجَاءَ رَجُلٌ مِنَ الْأَنْصَارِ فَدَخَلَ مِنْ قِبَلِ بَابِهِ فَكَأَنَّهُ عُيِّرَ بِذَلِكَ فَنَزَلَتْ هَذِهِ الْآيَةُ {وَلَيْسَ الْبِرُّ بِأَنْ تَأْتُوا الْبُيُوتَ مِنْ ظُهُورِهَا وَلَكِنَّ الْبِرَّ مَنِ اتَّقَى وَأْتُوا الْبُيُوتَ مِنْ أَبْوَابِهَا} [البقرة 189]  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ أَبِي الْوَلِيدِ وَأَخْرَجَهُ مُسْلِمٌ مِنْ وَجْهٍ آخَرَ عَنْ شُعْبَةَ