1753/1 - ‘Ā’ishah (may Allah be pleased with her) reported that she heard the Prophet (may Allah’s peace and blessings be upon him) say: “Prayer should neither be offered when food is ready, nor when one is in dire need of answering the call of nature.” [Narrated by Muslim]
1) One is advised to go into acts of obedience with calm and presence of mind, keeping away from distractions.
2) Anything that distracts a person during prayer is subject to the same ruling, such as photos and voices.
Although this Hadīth allows a person not to attend the congregational prayer when food is served and he craves for it, it behooves him not to make it a habit to have lunch or dinner when prayer is about to begin. If he did so, he would miss the reward of the congregational prayer and would be taking the matter of his religion lightly.