The Messenger of Allah ﷺ used to pray two units before the noon prayer and two after it, two units after the sunset prayer in his house, and two units after the night prayer. After the Friday prayer, he would not pray until he returned home, and then he would pray two units.
حدثنا عبد الله بن يوسف قال أخبرنا مالك عن نافع
أن رسول الله ﷺ كان يصلي قبل الظهر ركعتين وبعدها ركعتين وبعد المغرب ركعتين في بيته وبعد العشاء ركعتين وكان لا يصلي بعد الجمعة حتى ينصرف فيصلي ركعتين