Hudhaifa reported: When we attended a dinner along with the Messenger of Allah ﷺ we did not lay our hands on the food until Allah’s Messenger had laid his hand and commenced eating (the food). Once we went with him to a dinner when a girl came rushingly as if someone had been pursuing her. She was about to lay her hand on the food, when Allah’s Messenger caught her hand. Then a desert Arab came there (rushingly) as if someone had been pursuing him. He (the Holy Prophet) caught his hand; and then Allah’s Messenger said: Satan considers that food lawful on which Allah’s name is not mentioned. He had brought this girl so that the food might be made lawful for him and I caught her hand. And he had brought a desert Arab so that (the food) might be lawful for him. So I caught his hand. By Him, in Whose hand is my life, it was (Satan’s) hand that was in my hand along with her hand.
Islam enjoins the believers to mention God’s name on the food they have to eat. This hadith presents the benefits of doing so.
In another hadith related by Jabir bin Abdullah, Allah’s Messenger ﷺ said: When a person enters his house and mentions the name of Allah at the time of entering it and while eating the food, Satan says (addressing himself): You have no place to spend the night and no evening meal… So we must mention Allah’s name before eating or doing anything else.