The Book of Shortening the Prayer When Traveling
كتاب تقصير الصلاة فى السفر
Chapter 4: The length of stay during which prayers may be shortened
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."
The Messenger of Allah (ﷺ) stayed in Makkah (for fifteen days), praying each prayer with two rak'ahs.
"The Messenger of Allah (ﷺ) said: 'The Muhajir may stay for three days after completing his rituals.'"
"The Prophet (ﷺ) said: 'The Muhajir may stay for three days after his rituals.'"
She performed Umrah with the Messenger of Allah (ﷺ), traveling from Al-Madinah to Makkah. Then, when she came to Makkah, she said: "O Messenger of Allah (ﷺ), may my father and mother be ransomed for you, you shortened you prayers and I offered them in full, you did not fast and I fasted. He said: 'Well done, O 'Aishah!' and he did not criticize me."
Chapter 5: Not performing voluntary prayers while traveling
"Ibn 'Umar did not offer more than two rak'ahs when traveling, and he did not offer any prayer before or after that. It was said to him: 'What is this?' He said: 'This is what I saw the Messenger of Allah (ﷺ) doing.'"
"My father told me: 'I was with Ibn Umar on a journey, and he prayed Zuhr and 'Asr with two rak'ahs each, then he went and sat on his carpet. He saw some people offering voluntary prayers and said: What are these people doing? I said: They are offering voluntary prayers. He said: If I had wanted to pray before and after (the obligatory prayer) I would have offered it in full. I accompanied the Messenger of Allah (ﷺ) and he did not pray more than two rak'ahs when traveling, and Abu Bakr (did likewise) until he died, as did 'Umar and 'Uthman, may Allah (SWT) be pleased with them all."