Language:
كتاب الجهاد والسير
56  
Fighting for the Cause of Allah (Jihaad)
(146)
Chapter: Probability of killing the babies and children
(146)
باب أَهْلِ الدَّارِ يُبَيَّتُونَ فَيُصَابُ الْوِلْدَانُ وَالذَّرَارِيُّ
Sahih al-Bukhari 3012

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 : Vol. 4, Book 52, Hadith 256
  (deprecated numbering scheme)