I memorized from the Messenger of Allah ﷺ ten rakats which he used to pray during the day and night. Two rakats before Dhuhr and two after it, two rakats after Maghrib, and two rakats after Isha.He said, Hafsah told me that he used to pray two rakats before Fajr.This hadith is hasan sahih.
حدثنا الحسن بن علي الحلواني الخلال حدثنا عبد الرزاق أخبرنا معمر عن أيوب عن نافع
حفظت عن رسول الله ﷺ عشر ركعات كان يصليها بالليل والنهار ركعتين قبل الظهر وركعتين بعدها وركعتين بعد المغرب وركعتين بعد العشاء الآخرة قال وحدثتني حفصة أنه كان يصلي قبل الفجر ركعتين هذا حديث حسن صحيح
[Its isnad is sahih]. Ahmad narrated it in 2/35 from Abdul-Razzaq with the same wording, and it is agreed upon, Bukhari, no. 1180, through the route of Ayub Sakhtiyani, and Muslim, no. 729/104, from the hadith of Nafi.