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:51:36

And We found not within them other than a ˹single˺ house of Muslims.  

but We did not find therein other than one house of those who had submitted ˹to God˺: these were Lot and his two daughters. They have been described ˹here˺ with ˹the terms˺ ‘belief’ and ‘submission’ because they had affirmed ˹faith˺ in their hearts and used their limbs to perform acts of obedience.
القرآن:٥١:٣٦

فَمَا وَجَدْنَا فِيهَا غَيْرَ بَيْتٍ مِنَ الْمُسْلِمِينَ  

{فما وجدنا فيها غير بيت من المسلمين} وهو لوط وابنتاه وصفوا بالإيمان والإسلام، أي هم مصدقون بقلوبهم عاملون بجوارحهم الطاعات.