Sunan Ibn Majah – Hadith No : 1130

Yahyabin Abu Ishaq narrated that Anas said: “We went out with theMessenger of Allah (ﷺ) from Al-Madinah to Makkah, during which timewe shortened our prayer to two Rak’ah, until we came back.” Iasked:“How long did he stay in Makkah?” He said: “Ten (days).”

Hadith In Arabic Text :

حدثنا نصر بن علي الجهضمي، حدثنا يزيد بن زريع، وعبد الأعلى، قالا حدثنا يحيى بن أبي إسحاق، عن أنس، قال خرجنا مع رسول الله صلى الله عليه وسلم من المدينة إلى مكة فصلى ركعتين ركعتين حتى رجعنا ‏.‏ قلت كم أقام بمكة قال عشرا ‏.‏

Chapter : Establishing the Prayer and the Sunnah Regarding Them – كتاب إقامة الصلاة والسنة فيها