يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ كُتِبَ عَلَيْكُمُ ٱلصِّيَامُ كَمَا كُتِبَ عَلَى ٱلَّذِينَ مِن قَبْلِكُمْ لَعَلَّكُمْ تَتَّقُونَ ١٨٣

O you who have believed, decreed upon you is fasting as it was decreed upon those before you that you may become righteous

Qur’an 2 vs 184

Fidyah is to be paid in circumstance for those who are unable to fast in Ramadan due to old age, terminal ailment, pregnancy or breast feeding.