Sayyiduna Bara’ (may Allah be pleased with him) narrates: In the days of ignorance, when people would enter into the state of Ihram, they would come from the back of their houses (that is, they would set out for Hajj from the rear side of their homes). So Allah Almighty revealed this verse regarding this: "It is not righteousness that you come to the houses from their backs, but righteousness is for the one who fears (Allah)."
Hadith Referenceصحیح ابن حبان / كتاب الحج / 3947
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح: خ (1803 و 4512)، م (8/ 243).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط البخاري