The Messenger of Allah ﷺ would pray two rak'ahs before and two after the noon prayer, two after the sunset prayer in his house, and two after the night prayer. He would not pray after the Friday prayer till he departed. He would then pray two rak'ahs. (Using translation from Abū Dāʾūd 1252)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُصَلِّي قَبْلَ الظُّهْرِرَكْعَتَيْنِ وَبَعْدَهَا رَكْعَتَيْنِ وَبَعْدَ الْمَغْرِبِ رَكْعَتَيْنِ فِي بَيْتِهِ وَبَعْدَ الْعِشَاءِ رَكْعَتَيْنِ وَبَعْدَ الْجُمُعَةِ رَكْعَتَيْنِ فِي بَيْتِهِ