Salamah bin Al Akwa said “After the revelation of the verse “For those who can do it(with hardship) is a ransom, the feeding of one, that is indigent, is one of us intended to leave fast and pay ransom, he could do so.” until the verse following it was revealed and abrogated the (previous) verse.” (Using translation from Abū Dāʾūd 2315)
أَنَّهُ قَالَ لَمَّا نَزَلَتْ هَذِهِ الْآيَةُ {وَعَلَى الَّذِينَ يُطِيقُونَهُ فِدْيَةٌ طَعَامُ مِسْكِينٍ} [البقرة 184] قَالَ «كَانَ مَنْ أَرَادَ أَنْ يُفْطِرَ وَيَفْتَدِيَ فَعَلَ حَتَّى نَزَلَتِ الْآيَةُ الَّتِي بَعْدَهَا فَنَسَخَتْهَا»