The Messenger of Allah ﷺ said, "You will be gathered barefoot, naked, and uncircumcised."Ayesha said, "I asked, 'Messenger of Allah, will the men and women look at one another?'"He replied, "The matter will be too severe for that to concern them."
قال رسول الله ﷺ: تحشرون حفاة عراة غرلا قالت عائشة: فقلت: يا رسول الله، لرجال والنساء ينظر بعضهم إلى بعض؟ فقال: الأمر أشد من أن يهمهم ذاك.
Bukhari narrated it in the Book of Softening of Hearts (6527), and Muslim narrated it in the Book of Paradise and Its Bliss and Its People (2859), both through the route of Hatim bin Abu Saghira, from Abdullah bin Abu Mulayka, who said, Qasim bin Muhammad bin Abu Bakr told me, that Ayesha mentioned it. The wording given is that of Bukhari.