Question: When a man is eager to fast in Ramadan and keeps up the prayer only in Ramadan, then abandons the prayer as soon as Ramadan ends, will his fasting be accepted?
Answer: After the two testimonies of faith, the prayer is the most important pillar of Islam, and great emphasis has been laid upon it. It is an individual obligation (“fard ‘ayn”). Whoever denies its obligation, or abandons it out of laziness and negligence, becomes a disbeliever. As for those who fast in Ramadan and pray only in Ramadan, in reality these people deceive Allah the Exalted. Those who recognise Allah only in Ramadan are very bad people. Therefore the fasting of those who keep up the fasting but abandon the prayer outside Ramadan is neither valid nor accepted. “Al-Lajnah al-Da’imah”