I said, "O Messenger of Allah ﷺ! 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. (Using translation from Bukhārī 4790)
قَالَ عُمَرُ قُلْتُ «يَا رَسُولَ اللهِ يَدْخُلُ عَلَيْكَ الْبَرُّ وَالْفَاجِرُ فَلَوْ حَجَبْتَ أُمَّهَاتِ الْمُؤْمِنِينَ فَأَنْزَلَ اللهُ ﷻ آيَةَ الْحِجَابِ»