The Messenger of Allah ﷺ said, "Whoever forgets to mention the name of Allah at the beginning of his meal should say, when he remembers, 'In the name of Allah at its beginning and its end.' For he will then begin his meal afresh, and the evil one will be prevented from sharing in what he had been partaking of."
قال رسول الله ﷺ: من ﷺ: نسي أن يذكر الله في أول طعامه فليقل حين يذكر: بسم الله في أوله وآخره، فإنه يستقبل طعامه جديدا، ويمنع الخبيث ما كان يصيب منه.
Ibn Hibban (5213), Ibn Sunni (460), and Tabarani in al-Kabir (10/210) all narrated it through the route of Khalifa bin Khayat, who said, Umar bin Ali Muqaddami narrated to us, who said, I heard Musa Juhani say, Qasim bin Abdul-Rahman bin Abdullah bin Masud informed me, from his father, from his grandfather, who said, and then he mentioned it. Its chain of transmission is sahih.