Sunan Abi Da’ud – Hadith No : 1201

Narrated Yahya b. Yazid al-Hannani: I asked Anas b. Malik about the shortening of the prayer (while travelling). He said: When the Messenger of Allah (ﷺ) went out on a journey of three miles or three farsakh (the narrator Shu’bah doubted), he used to pray two rak’ahs.

Hadith In Arabic Text :

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

Chapter : Detailed Rules of Law about the Prayer during Journey – كتاب صلاة السفر