كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(30)
Chapter: The return of the Prophet (saws) from Ahzab and his going out to Bani Quraiza
(30)
بَابُ مَرْجَعِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مِنَ الأَحْزَابِ وَمَخْرَجِهِ إِلَى بَنِي قُرَيْظَةَ وَمُحَاصَرَتِهِ إِيَّاهُمْ
Sahih al-Bukhari 4119

Narrated Ibn `Umar:

On the day of Al-Ahzab (i.e. Clans) the Prophet (ﷺ) said, "None of you Muslims) should offer the `Asr prayer but at Banu Quraiza's place." The `Asr prayer became due for some of them on the way. Some of those said, "We will not offer it till we reach it, the place of Banu Quraiza," while some others said, "No, we will pray at this spot, for the Prophet (ﷺ) did not mean that for us." Later on It was mentioned to the Prophet (ﷺ) and he did not berate any of the two groups.

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدِ بْنِ أَسْمَاءَ، حَدَّثَنَا جُوَيْرِيَةُ بْنُ أَسْمَاءَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم يَوْمَ الأَحْزَابِ ‏ "‏ لاَ يُصَلِّيَنَّ أَحَدٌ الْعَصْرَ إِلاَّ فِي بَنِي قُرَيْظَةَ ‏"‏‏.‏ فَأَدْرَكَ بَعْضُهُمُ الْعَصْرَ فِي الطَّرِيقِ، فَقَالَ بَعْضُهُمْ لاَ نُصَلِّي حَتَّى نَأْتِيَهَا‏.‏ وَقَالَ بَعْضُهُمْ بَلْ نُصَلِّي، لَمْ يُرِدْ مِنَّا ذَلِكَ، فَذُكِرَ ذَلِكَ لِلنَّبِيِّ صلى الله عليه وسلم فَلَمْ يُعَنِّفْ وَاحِدًا مِنْهُمْ‏.‏
Reference : Sahih al-Bukhari 4119
In-book reference : Book 64, Hadith 163
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 445
  (deprecated numbering scheme)