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." (Using translation from Nasāʾī 1452)
«خَرَجْنَا مَعَ رَسُولِ اللهِ ﷺ مِنَ الْمَدِينَةِ إِلَى مَكَّةَ فَكَانَ يُصَلِّي بِنَا رَكْعَتَيْنِ حَتَّى رَجَعْنَا» قُلْتُ هَلْ أَقَامَ بِمَكَّةَ؟ قَالَ «نَعَمْ أَقَمْنَا بِهَا عَشْرًا»