Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:33:33

And abide in your houses and do not display yourselves as ˹was˺ the display of the former times of ignorance. And establish prayer and give zakah and obey Allah and His Messenger. Allah intends only to remove from you the impurity ˹of sin˺, O people of the ˹Prophet's˺ household, and to purify you with ˹extensive˺ purification.  

And stay in your houses (read qirna or qarna, derived from al-qarār, and is actually, aqrirna or aqrarna from qarirtu or qarartu: the vowelling of the rā’ is moved to the qāf and ˹the rā’˺ is omitted together with the conjunctive hamza) and do not flaunt your finery (tabarrajna, with one of the two original tā’ ˹of tatabarrajna˺ letters omitted) in the ˹flaunting˺ manner of the former Time of Ignorance, in other words, before Islam, when they used to display their beauty to men — ˹the stipulation regarding˺ such ‘displays’ after ˹the coming of˺ Islam is mentioned in the verse: and not to display their adornment except what is apparent ˹Q. 24:31˺. And maintain prayer and pay the alms, and obey God and His Messenger. Indeed God will but to rid you of sin, O, People of the House, in other words, ˹O˺ women of the Prophet (s), and to purify you, of it, with a thorough purification.
القرآن:٣٣:٣٣

وَقَرْنَ فِي بُيُوتِكُنَّ وَلَا تَبَرَّجْنَ تَبَرُّجَ الْجَاهِلِيَّةِ الْأُولَىٰ ۖ وَأَقِمْنَ الصَّلَاةَ وَآتِينَ الزَّكَاةَ وَأَطِعْنَ اللَّهَ وَرَسُولَهُ ۚ إِنَّمَا يُرِيدُ اللَّهُ لِيُذْهِبَ عَنْكُمُ الرِّجْسَ أَهْلَ الْبَيْتِ وَيُطَهِّرَكُمْ تَطْهِيرًا  

(وقرن) بكسر القاف وفتحها (في بيوتكن) من القرار وأصله: اقررن بكسر الراء وفتحها من قررت بفتح الراء وكسرها نقلت حركة الراء إلى القاف وحذفت مع همزة الوصل (ولا تبرجن) بترك إحدى التاءين من أصله (تبرج الجاهلية الأولى) أي ما قبل الإسلام من إظهار النساء محاسنهن للرجال والإظهار بعد الإسلام مذكور في آية "ولا يبدين زينتهن إلا ما ظهر منها" (وأقمن الصلاة وآتين الزكاة وأطعن الله ورسوله إنما يريد الله ليذهب عنكم الرجس) الإثم يا (أهل البيت) أي نساء النبي ﷺ (ويطهركم) منه (تطهيرا).