Hadithcore
Sahih al-Bukhari, 4297
sahih

Narrated Anas:

We stayed (in Mecca) for ten days along with the Prophet (ﷺ) and used to offer shortened prayers (i.e. journey prayers).

حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا سُفْيَانُ،‏.‏ حَدَّثَنَا قَبِيصَةُ، حَدَّثَنَا سُفْيَانُ، عَنْ يَحْيَى بْنِ أَبِي إِسْحَاقَ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ أَقَمْنَا مَعَ النَّبِيِّ صلى الله عليه وسلم عَشْرًا نَقْصُرُ الصَّلاَةَ‏.‏

References2 variants
In-Book Reference
Book 64, Hadith 330
USC-MSA web (English) reference
Vol. 5, Book 59, Hadith 591 (deprecated numbering scheme)