I know (about) the Hijab (the order of veiling of women) more than anybody else. Ubai bin Kaʿb used to ask me about it. Messenger of Allah ﷺ became the bridegroom of Zainab bint Jahsh whom he married at Medina. After the sun had risen high in the sky, the Prophet ﷺ invited the people to a meal. Allah's Apostle remained sitting and some people remained sitting with him after the other guests had left. Then Messenger of Allah ﷺ got up and went away, and I too, followed him till he reached the door of ʿAisha's room. Then he thought that the people must have left the place by then, so he returned and I also returned with him. Behold, the people were still sitting at their places. So he went back again for the second time, and I went along with him too. When we reached the door of ʿAisha's room, he returned and I also returned with him to see that the people had left. Thereupon the Prophet ﷺ hung a curtain between me and him and the Verse regarding the order for (veiling of women) Hijab was revealed. (Using translation from Bukhārī 5466)
قَالَ أَنَسُ بْنُ مَالِكٍ أَصْبَحَ رَسُولُ اللهِ ﷺ عَرُوسًا بِزَيْنَبَ بِنْتِ جَحْشٍ وَكَانَ تَزَوَّجَهَا بِالْمَدِينَةِ فَدَعَا النَّاسَ لِلطَّعَامِ بَعْدَ ارْتِفَاعِ النَّهَارِ فَجَلَسَ رَسُولُ اللهِ ﷺ وَجَلَسَ مَعَهُ رِجَالٌ بَعْدَمَا قَامَ الْقَوْمُ حَتَّى قَامَ رَسُولُ اللهِ ﷺ فَمَشَى وَمَشَيْتُ مَعَهُ حَتَّى بَلَغَ بَابَ حُجْرَةِ عَائِشَةَ وَظَنَّ أَنَّهُمْ قَدْ خَرَجُوا فَرَجَعَ وَرَجَعْتُ مَعَهُ فَإِذَا هُمْ مَكَانَهُمْ فَرَجَعَ وَرَجَعْتُ مَعَهُ الثَّانِيَةَ حَتَّى بَلَغَ حُجْرَةَ عَائِشَةَ فَإِذَا هُمْ قَدْ قَامُوا فَضَرَبَ بَيْنِي وَبَيْنَهُ السِّتْرَ وَأُنْزِلَ الْحِجَابُ