Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:1227ʿAbdullāh > Isḥāq b. Ismāʿīl > Jarīr And Muḥammad b. Fuḍayl b. Ghazwān > Muṭarrif > Abū Isḥāq > ʿĀṣim b. Ḍamrah > ʿAlī

The Messenger of Allah ﷺ did not offer any prayer after which (nafl) prayer may be offered, but he prayed two rakʿahs after it.  

أحمد:١٢٢٧حَدَّثَنَا عَبْدُ اللهِ حَدَّثَنَا إِسْحَاقُ بْنُ إِسْمَاعِيلَ حَدَّثَنَا جَرِيرٌ وَمُحَمَّدُ بْنُ فُضَيْلِ بْنِ غَزْوَانَ عَنْ مُطَرِّفٍ عَنْ أَبِي إِسْحَاقَ عَنْ عَاصِمِ بْنِ ضَمْرَةَ عَنْ عَلِيٍّ قَالَ

كَانَ رَسُولُ اللهِ ﷺ لَا يُصَلِّي صَلاةً يُصَلَّى بَعْدَهَا إِلا صَلَّى بَعْدَهَا رَكْعَتَيْنِ  


See similar narrations below:

Collected by Aḥmad, Nasāʾī's Kubrá
ahmad:1217ʿAbdullāh > Abū Khaythamah > Jarīr And Muḥammad b. Fuḍayl > Muṭarrif > Abū Isḥāq > ʿĀṣim b. Ḍamrahaʿan ʿAlī

The Prophet ﷺ did not offer any (obligatory) prayer but he prayed two rakʿahs after it.  

أحمد:١٢١٧حَدَّثَنَا عَبْدُ اللهِ حَدَّثَنِي أَبُو خَيْثَمَةَ حَدَّثَنَا جَرِيرٌ وَمُحَمَّدُ بْنُ فُضَيْلٍ عَنْ مُطَرِّفٍ عَنْ أَبِي إِسْحَاقَ عَنْ عَاصِمِ بْنِ ضَمْرَةَعَنْ عَلِيٍّ قَالَ

كَانَ النَّبِيُّ ﷺ لَا يُصَلِّي صَلاةً إِلا صَلَّى بَعْدَهَا رَكْعَتَيْنِ  

nasai-kubra:344Muḥammad b. Qudāmah > Jarīr > Muṭarrif > Abū Isḥāq > ʿĀṣim > ʿAlī

The Prophet ﷺ did not offer any (obligatory) prayer but he prayed two rakʿahs after it. (Using translation from Aḥmad 1217)   

الكبرى للنسائي:٣٤٤أَخْبَرَنَا مُحَمَّدُ بْنُ قُدَامَةَ عَنْ جَرِيرٍ عَنْ مُطَرِّفٍ عَنْ أَبِي إِسْحَاقَ عَنْ عَاصِمٍ عَنْ عَلِيٍّ قَالَ

كَانَ رَسُولُ اللهِ ﷺ «لَا يُصَلِّي صَلَاةً يُصَلِّي بَعْدَهَا إِلَّا صَلَّى رَكْعَتَيْنِ»