Saab bin Jathama reported,

The Prophet ﷺ passed by me at al-Abwa, or at Waddan, and he was asked about the people of a dwelling among the polytheists who are raided at night, and whose women and children may be struck in the attack.He said, "They are counted among them."And I heard him say, "There is no protected sanctuary except for Allah and His Messenger ﷺ."

Azami 7907

Sahih

عن الصعب بن جثامة قال

مر بي النبي ﷺ بالأبواء، أو بودان وسئل عن أهل الدار يبيتون من المشركين، فيصاب من نسائهم وذراريهم، قال: هم منهم وسمعته يقول: لا حمى إلا الله والرسول له ﷺ.

الأعظمي 7907صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Killing women and children unintentionally
Numbering
Jami al-Kamil 7907 (2nd edition)
Azami 7907