The Prophet ﷺ passed by me at al-Abwa or Waddan, and he was asked about the people of a dwelling among the polytheists who are raided at night, where their women and children are struck along with them. He said, "They are part of them."
مر بي النبي ﷺ بالأبواء أو بودان، وسئل عن أهل الدار يبيتون من المشركين، فيصاب من نسائه وذراريهم؟ قال: هم منهم.
Bukhari narrated it in the Book of Jihad and Military Expeditions (3012), and Muslim in the Book of Jihad and Military Expeditions (1745), both from the hadith of Sufyan bin Uyayna, from Zuhri, from Ubaydullah, from Ibn Abbas, from Saab bin Jathama, and he related it. Muslim also narrated it from the hadith of Amr bin Dinar, from Ibn Shihab, with his chain, and in it, "They are from their fathers." This indicates that their ruling in a night raid is the same as the ruling for their fathers. As for the hereafter, their matter goes back to his statement, "Allah knows best what they would have done." See Bayhaqi, Qada wal-Qadar (3/879).