Hadithcore
Al-Adab Al-Mufrad, 23
hasan· Al-Albani

Ibn 'Abbas mentioned the words of the Almighty, "When one or both of them reach old age with you, do not say 'Ugh!' to them out of irritation and do not be harsh with them but speak to them with gentleness and generosity. Take them under your wing, out of mercy, with due humility and say:

'Lord, show mercy to them as they did in looking after me when I was small." (17:23-24) He said, "This was abrogated in Surat at-Tawba: 'It is not right for the Prophet (ﷺ) and those who have iman to ask forgiveness for the mushrikun even if they are close relatives after it has become clear to them that they are the Companions of the Blazing Fire.' (9:113)"

حَدَّثَنَا إِسْحَاقُ، قَالَ‏:‏ أَخْبَرَنَا عَلِيُّ بْنُ حُسَيْنٍ قَالَ‏:‏ حَدَّثَنِي أَبِي، عَنْ يَزِيدَ النَّحْوِيِّ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، فِي قَوْلِهِ عَزَّ وَجَلَّ‏:‏ ‏{‏إِمَّا يَبْلُغَنَّ عِنْدَكَ الْكِبَرَ أَحَدُهُمَا أَوْ كِلاَهُمَا فَلاَ تَقُلْ لَهُمَا أُفٍّ‏}‏ إِلَى قَوْلِهِ‏:‏ ‏{‏كَمَا رَبَّيَانِي صَغِيرًا‏}‏، فَنَسَخَتْهَا الْآيَةُ فِي بَرَاءَةَ‏:‏ ‏{‏مَا كَانَ لِلنَّبِيِّ وَالَّذِينَ آمَنُوا أَنْ يَسْتَغْفِرُوا لِلْمُشْرِكِينَ وَلَوْ كَانُوا أُولِي قُرْبَى مِنْ بَعْدِ مَا تَبَيَّنَ لَهُمْ أَنَّهُمْ أَصْحَابُ الْجَحِيمِ‏}‏‏.‏

References2 variants
In-Book Reference
Book 1, Hadith 23
English Reference
Book 1, Hadith 23