Bara bin Azib reported,

In the days of ignorance, when people entered the state of ihram, they would approach their houses from the back. Allah then revealed, "Righteousness is not that you enter houses from their backs, but righteousness is one who fears Allah. So enter houses through their doors" [Baqarah 2:189].

Bukhari 4512

Sahih

حدثنا عبيد الله بن موسى عن إسرائيل عن أبي إسحاق

عن البراء قال

كانوا إذا أحرموا في الجاهلية أتوا البيت من ظهره فأنزل الله {وليس البر بأن تأتوا البيوت من ظهورها ولكن البر من اتقى وأتوا البيوت من أبوابها}

البخاري 4512صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "And it is not righteousness that you enter houses from their backs, but righteousness is in one who fears Allah. And enter houses from their doors, and fear Allah that you may succeed."
Numbering
Darussalam 4512
Bukhari 4512