Narrated Anas b. Malik :
I prayed along with the Messenger of Allah (ﷺ) four rak'ahs at the noon prayer at Medina and two rak'ahs at the afternoon prayer in Dhu al-Hulaifah.