كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(1)
Chapter: Permissibility of raiding the Kuffar, who have been reached with the call of Islam, without giving prior warning
(1)
باب جَوَازِ الإِغَارَةِ عَلَى الْكُفَّارِ الَّذِينَ بَلَغَتْهُمْ دَعْوَةُ الإِسْلاَمِ مِنْ غَيْرِ تَقَدُّمِ الإِعْلاَمِ بِالإِغَارَةِ
Sahih Muslim 1730 a

Ibn 'Aun reported:

I wrote to Nafi' inquiring from him whether it was necessary to extend (to the disbelievers) an invitation to accept (Islam) before meeting them in fight. He wrote (in reply) to me that it was necessary in the early days of Islam. The Messenger of Allah (ﷺ) made a raid upon Banu Mustaliq while they were unaware and their cattle were having a drink at the water. He killed those who fought and imprisoned others. On that very day, he captured Juwairiya bint al-Harith. Nafi' said that this tradition was related to him by Abdullah b. Umar who (himself) was among the raiding troops.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى التَّمِيمِيُّ، حَدَّثَنَا سُلَيْمُ بْنُ أَخْضَرَ، عَنِ ابْنِ عَوْنٍ، قَالَ كَتَبْتُ إِلَى نَافِعٍ أَسْأَلُهُ عَنِ الدُّعَاءِ، قَبْلَ الْقِتَالِ قَالَ فَكَتَبَ إِلَىَّ إِنَّمَا كَانَ ذَلِكَ فِي أَوَّلِ الإِسْلاَمِ قَدْ أَغَارَ رَسُولُ اللَّهِ صلى الله عليه وسلم عَلَى بَنِي الْمُصْطَلِقِ وَهُمْ غَارُّونَ وَأَنْعَامُهُمْ تُسْقَى عَلَى الْمَاءِ فَقَتَلَ مُقَاتِلَتَهُمْ وَسَبَى سَبْيَهُمْ وَأَصَابَ يَوْمَئِذٍ - قَالَ يَحْيَى أَحْسِبُهُ قَالَ - جُوَيْرِيَةَ - أَوْ قَالَ الْبَتَّةَ - ابْنَةَ الْحَارِثِ وَحَدَّثَنِي هَذَا الْحَدِيثَ عَبْدُ اللَّهِ بْنُ عُمَرَ وَكَانَ فِي ذَاكَ الْجَيْشِ.
Reference : Sahih Muslim 1730a
In-book reference : Book 32, Hadith 1
USC-MSA web (English) reference : Book 19, Hadith 4292
  (deprecated numbering scheme)