(146) باب أَهْلِ الدَّارِ يُبَيَّتُونَ فَيُصَابُ الْوِلْدَانُ وَالذَّرَارِيُّ
Narrated As-Sab bin Jaththama:
The Prophet (ﷺ) passed by me at a place called Al-Abwa or Waddan, and was asked whether it was permissible to attack the pagan warriors at night with the probability of exposing their women and children to danger. The Prophet (ﷺ) replied, "They (i.e. women and children) are from them (i.e. pagans)." I also heard the Prophet (ﷺ) saying, "The institution of Hima is invalid except for Allah and His Apostle."
Reference: Sahih al-Bukhari 3012
In-book reference: Book 56, Hadith 221
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 52, Hadith 256