I prayed the Dhuhr prayer with the Messenger of Allah ﷺ in Madinah as four units, and the Asr prayer at Dhul Hulayfah as two units.
حدثنا زهير بن حرب حدثنا ابن عيينة عن محمد بن المنكدر وإبراهيم بن ميسرة سمعا
صليت مع رسول الله ﷺ الظهر بالمدينة أربعا والعصر بذي الحليفة ركعتين
Bukhari narrated it in "Shortening the Prayer," chapter "Shortening the prayer upon leaving one's place," hadith no. 1089, and Muslim in "The Prayer of Travelers," chapter "The prayer of travelers and its shortening," hadith no. 690, from the hadith of Sufyan bin Uyayna, with this wording.