This verse was revealed concerning us. The Ansar, when they performed Hajj and returned, would not enter their houses through the front doors but rather from the back. A man from the Ansar came and entered through his front door, and it was as if he was reproached for that. So the verse was revealed, "And it is not righteousness that you enter houses from the back, but righteousness is one who fears Allah. And enter houses through their doors" [Baqarah 2:189].
حدثنا أبو الوليد حدثنا شعبة عن أبي إسحاق قال سمعت
نزلت هذه الآية فينا كانت الأنصار إذا حجوا فجاءوا لم يدخلوا من قبل أبواب بيوتهم ولكن من ظهورها فجاء رجل من الأنصار فدخل من قبل بابه فكأنه عير بذلك فنزلت {وليس البر بأن تأتوا البيوت من ظهورها ولكن البر من اتقى وأتوا البيوت من أبوابها}