BUKHARI 4507: from Salamah —
When the Divine Revelation: "For those who can fast, they had a choice either fast, or feed a poor for every day," (2.184) was revealed, it was permissible for one to give a ransom and give up fasting, till the Verse succeeding it was revealed and abrogated it.

البخاري ٤٥٠٧: عن سلمه —
لَمَّا نَزَلَتْ {وَعَلَى الَّذِينَ يُطِيقُونَهُ فِدْيَةٌ طَعَامُ مِسْكِينٍ} كَانَ مَنْ أَرَادَ أَنْ يُفْطِرَ وَيَفْتَدِيَ حَتَّى نَزَلَتِ الآيَةُ الَّتِي بَعْدَهَا فَنَسَخَتْهَا مَاتَ بُكَيْرٌ قَبْلَ يَزِيدَ


Agreed Upon (Luʿluʿ wa-al-Marjān)
Bukhārī > Prophetic Commentary on the Quran > § Surat al-Baqarah (The Cow)
hadithunlocked.com