We went out from Medina to Mecca with God’s Messenger and he prayed two rak'as at each time of prayer till we returned to Medina. On being asked whether they had stayed any length of time in Mecca, he replied that they had stayed ten days.
I remarked to ‘Umar b. al-Khattab that God had said, “You may shorten the prayer,” only “if you fear those who are infidels may afflict you” (Al-Qur’an; 4:101), whereas the people were now safe. He replied that he had wondered about the same matter, so he asked God's Messenger and received the reply, “It is an act of charity which God has done to you, so accept His charity.”
Ibn ‘Abbas said the Prophet made a journey during which he had a stop of nineteen days, and he prayed two rak'as at each time of prayer. Ibn ‘Abbas said, “So when we are stopping nineteen days between here and Mecca we pray two rak'as each time, but when we stop more than that we pray four.”
Haritha b. Wahb al-Khuza‘i said, “God’s Messenger led us in a prayer of two rak'as in Mina when we were more numerous and more secure than we had ever been before.”