Anas bin Malik (RA) is reported to have said: I observed four rak'ahs in the noon prayer with the Messenger of Allah (ﷺ) at Madinah, and said two rak'ahs in the afternoon prayer at Dhu'l-Hulaifa.
Hadith ReferenceSahih Muslim / The Book of Prayer - Travellers / Hadith: 690