Training comes first. Food is there to support it: three good meals, simple and unmeasured. Good enough is the goal.
Optional and unscheduled. When you choose to fast for prayer, pick a sport or rest day rather than a lifting or long-run day. Drink water, break it with a normal dinner, and carry on as usual the next day. If it starts to feel like a diet tool, let it go.