The Statement of Allah the Exalted: "...O you who believe! Enter not the Prophet's houses, except when leave is given to you for a meal... (up to) ... Verily! With Allah that shall be an enormity." (V.33:53) Sahih al-Bukhari 4790

Arabic hadith text
حَدَّثَنَا مُسَدَّدٌ، عَنْ يَحْيَى، عَنْ حُمَيْدٍ، عَنْ أَنَسٍ، قَالَ قَالَ عُمَرُ ـ رضى الله عنه ـ قُلْتُيَا رَسُولَ اللَّهِ، يَدْخُلُ عَلَيْكَ الْبَرُّ وَالْفَاجِرُ، فَلَوْ أَمَرْتَ أُمَّهَاتِ الْمُؤْمِنِينَ بِالْحِجَابِ، فَأَنْزَلَ اللَّهُ آيَةَ الْحِجَابِ‏.‏
Translation
Narrated `Umar

I said, "O Allah's Messenger (ﷺ)! Good and bad persons enter upon you, so I suggest that you order the mothers of the Believers (i.e. your wives) to observe veils." Then Allah revealed the Verses of Al- Hijab.