The World Federation One Stop Fiqh

Ruling 1718

It is recommended for a fasting person to perform maghrib and ʿishāʾ  prayers before breaking his fast. However, if someone is waiting for him or he is very drawn to food – such that he cannot pray with presence of heart – it is better that he first break his fast. However, as much as he possibly can, he should perform the prayers within their prime time (waqt al‐faḍīlah).31

31 This refers to the early period of the prescribed time for a prayer during which there is more reward for performing it.