كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(20)
Chapter: The night prayers are two by two, and Witr is one rakah at the end of the night
(20)
باب صَلاَةُ اللَّيْلِ مَثْنَى مَثْنَى وَالْوِتْرُ رَكْعَةٌ مِنْ آخِرِ اللَّيْلِ ‏
Sahih Muslim 749 e

This hadith his been narrated by Ibn 'Umar by another chain of trans- mitters but it does not have these words:

" Then a person asked him at the end of the year," and what follows subsequently.
وَحَدَّثَنِي أَبُو كَامِلٍ، حَدَّثَنَا حَمَّادٌ، حَدَّثَنَا أَيُّوبُ، وَبُدَيْلٌ، وَعِمْرَانُ بْنُ حُدَيْرٍ، عَنْ عَبْدِ اللَّهِ بْنِ شَقِيقٍ، عَنِ ابْنِ عُمَرَ، ح وَحَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ الْغُبَرِيُّ، حَدَّثَنَا حَمَّادٌ، حَدَّثَنَا أَيُّوبُ، وَالزُّبَيْرُ بْنُ الْخِرِّيتِ، عَنْ عَبْدِ اللَّهِ بْنِ شَقِيقٍ، عَنِ ابْنِ عُمَرَ، قَالَ سَأَلَ رَجُلٌ النَّبِيَّ صلى الله عليه وسلم ‏.‏ فَذَكَرَا بِمِثْلِهِ وَلَيْسَ فِي حَدِيثِهِمَا ثُمَّ سَأَلَهُ رَجُلٌ عَلَى رَأْسِ الْحَوْلِ وَمَا بَعْدَهُ ‏.‏
Reference : Sahih Muslim 749e
In-book reference : Book 6, Hadith 181
USC-MSA web (English) reference : Book 4, Hadith 1636
  (deprecated numbering scheme)