Salama bin Akwa reported,

When the verse "And upon those who are able to fast, a ransom of feeding a poor person" [Baqarah 2:184] was revealed, whoever among us wished to break the fast could do so and pay the ransom, until the verse after it was revealed and abrogated it.

Tirmidhi 798

Sahih

حدثنا قتيبة حدثنا بكر بن مضر عن عمرو بن الحارث عن بكير بن عبد الله بن الأشج عن يزيد مولى سلمة بن الأكوع

عن سلمة بن الأكوع قال

لما نزلت {وعلى الذين يطيقونه فدية طعام مسكين} كان من أراد منا أن يفطر ويفتدي حتى نزلت الآية التي بعدها فنسختها

الترمذي 798صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Fasting
Chapter
Those who are able to fast
Numbering
Darussalam 798
Tirmidhi 798