Sunan an-Nasa'i #1452 · The Book of Shortening the Prayer When Traveling

Sunan an-Nasa'iIt was narrated from Yahya bin Abi Ishaq that
Sunan an-Nasa'i · Book 15 · The Book of Shortening the Prayer When Traveling
Sunan an-Nasa'i · كتاب 15 · كتاب قصر الصلاة في السفر
Anas bin Malik said: " We went out with the Messenger of Allah (ﷺ) from Al-Madinah to Makkah and he used to lead us in praying two rak'ahs until we came back." I (Yahya) said: "Did he stay in Makkah?" He (Anas) said: "Yes, we stayed there for ten days
أَخْبَرَنَا حُمَيْدُ بْنُ مَسْعَدَةَ، قَالَ حَدَّثَنَا يَزِيدُ، قَالَ أَنْبَأَنَا يَحْيَى بْنُ أَبِي إِسْحَاقَ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ خَرَجْنَا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم مِنَ الْمَدِينَةِ إِلَى مَكَّةَ فَكَانَ يُصَلِّي بِنَا رَكْعَتَيْنِ حَتَّى رَجَعْنَا ‏.‏ قُلْتُ هَلْ أَقَامَ بِمَكَّةَ قَالَ نَعَمْ أَقَمْنَا بِهَا عَشْرًا ‏.‏
Reference : Sunan an-Nasa'i 1452In-book reference : Book 15, Hadith 20