Narrated Yahya bin Yazid al-Hannani: I asked Anas bin 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 Shubah doubted), he used to pray two rak'ahs.
Hadith Referenceسنن ابي داود / كتاب صلاة السفر / 1201
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح مسلم (691)
Narrated Anas bin Malik: I prayed along with the Messenger of Allah ﷺ four rak'ahs at the noon prayer at Madina and two rak'ahs at the afternoon prayer in Dhu al-Hulaifah.
Hadith Referenceسنن ابي داود / كتاب صلاة السفر / 1202
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح بخاري (1089) صحيح مسلم (690)