The Messenger of Allah ﷺ would not pray after Jumu'ah until he had left, then he would pray two rak'ahs. (Sahih) (Using translation from Nasāʾī 1427)
أَنَّ رَسُولَ اللهِ ﷺ «كَانَ لَا يُصَلِّي بَعْدَ الْجُمُعَةِ حَتَّى يَنْصَرِفَ فَيُصَلِّي رَكْعَتَيْنِ»