كتاب الإمارة
33  
The Book on Government
(20)
Chapter: Swearing Allegiance and Pledging to adhere to Islam, to engage in Jihad and to do Good, after the conquest of Makkah, and the meaning of the phrase: "There is No Hijrah (migration) after the Conquest."
(20)
باب الْمُبَايَعَةِ بَعْدَ فَتْحِ مَكَّةَ عَلَى الإِسْلاَمِ وَالْجِهَادِ وَالْخَيْرِ وَبَيَانِ مَعْنَى: «لاَ هِجْرَةَ بَعْدَ الْفَتْحِ»
Sahih Muslim 1865 b

This tradition has been handed down through a different chain of transmitter with the addition of the following words at the end:

" Do you milk them on the day they arrive at the water? He replied: Yes."
وَحَدَّثَنَاهُ عَبْدُ اللَّهِ بْنُ عَبْدِ الرَّحْمَنِ الدَّارِمِيُّ، حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ، عَنِ الأَوْزَاعِيِّ، بِهَذَا الإِسْنَادِ ‏.‏ مِثْلَهُ غَيْرَ أَنَّهُ قَالَ ‏"‏ إِنَّ اللَّهَ لَنْ يَتِرَكَ مِنْ عَمَلِكَ شَيْئًا ‏"‏ ‏.‏ وَزَادَ فِي الْحَدِيثِ قَالَ ‏"‏ فَهَلْ تَحْلُبُهَا يَوْمَ وِرْدِهَا ‏"‏ ‏.‏ قَالَ نَعَمْ ‏.‏
Reference : Sahih Muslim 1865b
In-book reference : Book 33, Hadith 129
USC-MSA web (English) reference : Book 20, Hadith 4601
  (deprecated numbering scheme)