It is narrated from Anas bin Malik (may Allah be pleased with him) who states: I offered four rak'ahs of Zuhr prayer with the Prophet (ﷺ) in Madinah, and at the place of Dhu'l-Hulaifah, I offered two rak'ahs (shortened) of Asr prayer.
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 343
Hadith Takhrijأخرجه البخاري: التقصير، باب يقصر إذا خرج من موضعه: 1089، 1547 - ومسلم: صلاة المسافرين، باب صلاة المسافرين وقصرها: 690.