ENOfficial
It was narrated that ‘Ali (رضي الله عنه) said: The Messenger of Allah (ﷺ) used to pray two rak`ahs following every prescribed prayer except Fajr and ‘Asr. ‘Abdur-Rahman said: after every prayer.
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا وَكِيعٌ، وَعَبْدُ الرَّحْمَنِ، عَنْ سُفْيَانَ، عَنْ أَبِي إِسْحَاقَ، عَنْ عَاصِمِ بْنِ ضَمْرَةَ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُصَلِّي عَلَى كُلِّ أَثَرِ صَلَاةٍ مَكْتُوبَةٍ رَكْعَتَيْنِ إِلَّا الْفَجْرَ وَالْعَصْرَ وَقَالَ عَبْدُ الرَّحْمَنِ فِي دُبُرِ كُلِّ صَلَاةٍ.
sunnah.com