Question:
What is the ruling on the fast of one who does not pray?
Answer:
The prayer has its own ruling and the fast has its own. If a person who does not pray observes the fast, his obligation is fulfilled, but he will be sinful for abandoning the prayer.
Imam al-Nawawi (may Allah have mercy on him) says:
الصيام والصلاة فريضتان مستقلتان، فترك إحداهما لا يبطل الأخرى
The prayer and the fast are two separate obligations; abandoning one of them does not invalidate the other.
Reference: (Al-Majmu’ Sharh al-Muhadhdhab: 6/374)