Sunan Ibn Majah #1077 · Establishing the Prayer and the Sunnah Regarding Them

Sunan Ibn MajahYahya bin Abu Ishaq narrated that Anas said
Sunan Ibn Majah · Book 5 · Establishing the Prayer and the Sunnah Regarding Them
Sunan Ibn Majah · كتاب 5 · إقامة الصلاة وسننها
“We went out with the Messenger of Allah (ﷺ) from Al-Madinah to Makkah, during which time we shortened our prayer to two Rak’ah, until we came back.” I asked: “How long did he stay in Makkah?” He said: “Ten (days).”
حَدَّثَنَا نَصْرُ بْنُ عَلِيٍّ الْجَهْضَمِيُّ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ، وَعَبْدُ الأَعْلَى، قَالاَ حَدَّثَنَا يَحْيَى بْنُ أَبِي إِسْحَاقَ، عَنْ أَنَسٍ قَالَ
خَرَجْنَا مَعَ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ مِنَ الْمَدِينَةِ إِلَى مَكَّةَ. فَصَلَّى رَكْعَتَيْنِ رَكْعَتَيْنِ، حَتَّى رَجَعْنَا ‏.‏ قُلْتُ: كَمْ أَقَامَ بِمَكَّةَ؟ قَالَ: عَشْرًا ‏.‏
Reference : Sunan Ibn Majah 1077In-book reference : Book 5, Hadith 275