كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(29)
Chapter: The Ghazwa of Al-Khandaq or Al-Ahzab Battle
(29)
باب غَزْوَةُ الْخَنْدَقِ وَهْىَ الأَحْزَابُ
Sahih al-Bukhari 4110

Narrated Sulaiman bin Surd:

When the clans were driven away, I heard the Prophet (ﷺ) saying, "From now onwards we will go to attack them (i.e. the infidels) and they will not come to attack us, but we will go to them."

حَدَّثَنِي عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ، حَدَّثَنَا يَحْيَى بْنُ آدَمَ، حَدَّثَنَا إِسْرَائِيلُ، سَمِعْتُ أَبَا إِسْحَاقَ، يَقُولُ سَمِعْتُ سُلَيْمَانَ بْنَ صُرَدٍ، يَقُولُ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ حِينَ أَجْلَى الأَحْزَابُ عَنْهُ ‏ "‏ الآنَ نَغْزُوهُمْ وَلاَ يَغْزُونَنَا، نَحْنُ نَسِيرُ إِلَيْهِمْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 4110
In-book reference : Book 64, Hadith 154
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 436
  (deprecated numbering scheme)