Prophet Muhammad ﷺ used to pray more rakahs than the minimum prescribed numbers of rakahs for each of the 5 daily prayers, and these are called Sunnah. Prayer is still accepted even if the Sunnah isn’t performed, but Prophet Muhammad ﷺ used to pray them regularly so it is highly recommended.
[table]Name,Prescribed time,Voluntary before fard,Fard,Voluntary after fard
Fajr (فجر),Dawn to sunrise,2 Raka’ah,2 Raka’ah,2 Raka’ah
Zohr (ظهر),After true noon until Asr,2-4 Raka’ah,4 Raka’ah,2-4 Raka’ah
Asr (عصر),Mid afternoon till just before sunset,2-4 Raka’ah,4 Raka’ah,-
Maghrib (مغرب),After sunset until dusk,2-4 Raka’ah,3 Raka’ah,2 Raka’ah
Isha (عشاء),Dusk until dawn,4 Raka’ah,4 Raka’ah,2 Raka’ah[/table]
“Allah will build a house in Heaven for whoever is diligent in observing 12 Sunnah Rak’aat (as follows): 4 Rak’aat before and 2 after the Dhuhr (Midday) Prayer, 2 after the Maghrib (Sunset Prayer), 2 after the ‘Ishaa’ (Evening) Prayer and 2 before the Fajr (Dawn) Prayer.”
-Hadith sahih narrated by at-Tirmidhi No. 379 and by others. Hadith No. 6183 in Sahih al-Jaami’.
‘Anbasah ibn Abi Sufyan quoted Umm Habibah as saying
“Allaah’s Messenger said: “A house will be built in Heaven for one who prays 12 Rak’aat in a day and evening as follows: 4 Rak’aat before and 2 after the Dhuhr Prayer, 2 after the Maghrib Prayer, 2 after the ‘Ishaa’ Prayer and 2 before the Fajr Prayer.”
Narrated by at-Tirmidhi under No. 380. He said: The Hadith narrated by ‘Anbasah quoting Umm Habibah in this chapter is a hassan and sahih hadith. No. 6362 in Sahih al-Jaami’.