Question: If I entered the masjid during the time of maghrib in the month of Ramadan or other than it and I am fasting. Do I pray Tahiyyatul Masjid or sit for Iftar then pray? Jazakallahu khairan
Answer: “What do you say oh congregation? Iftar does not need difficulty, dates put in his mouth and he chews it and eats it and he standing. There is no problem with it.
This is like another question posed: does this muadhin break his fast before the adhan of maghrib or give the adhan then break the fast? He breaks his fast then makes adhan. Adhan is easy. No it is easier. This is one also eats a date and he is standing and he prays Tahiyyatul Masjid.
What is important is that everyone begins with breaking his fast because breaking the fast does not harm, that is: breaking the fast does not need sitting down. He said: sit down to break his fast. We say: it is not necessary. Eat dates standing then pray two rakat. Then complete the iftar”.
(Taken from: https://shamela.ws/browse.php/book-7679/page-222*)
Faisal Ibn Abdul Qaadir Ibn Hassan