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:37:135

Except his wife among those who remained ˹with the evildoers˺.  

except an old woman ˹who was˺ among those who stayed behind, in other words, those who stayed behind in the chastisement.
القرآن:٣٧:١٣٥

إِلَّا عَجُوزًا فِي الْغَابِرِينَ  

{إلا عجوزا في الغابرين} أي الباقين في العذاب.

See similar narrations below:

Collected by Qurʾān
quran:26:171

Except an old woman among those who remained behind.  

except an old woman — his wife — among those who stayed behind, whom We destroyed.
القرآن:٢٦:١٧١

إِلَّا عَجُوزًا فِي الْغَابِرِينَ  

{إلا عجوزا} امرأته {في الغابرين} الباقين أهلكناها.