The Messenger of Allah ﷺ was sitting while a man was eating without mentioning the name of Allah. When only one morsel of his food remained and he raised it to his mouth, he said, "In the name of Allah, at its beginning and its end."The Prophet ﷺ laughed and then said, "Satan kept eating along with him, but when he mentioned the name of Allah , Satan vomited up what was in his stomach."
حدثنا مؤمل بن الفضل الحراني حدثنا عيسى يعني ابن يونس حدثنا جابر بن صبح حدثنا المثنى بن عبد الرحمن الخزاعي
كان رسول الله ﷺ جالسا ورجل يأكل فلم يسم حتى لم يبق من طعامه إلا لقمة فلما رفعها إلى فيه قال بسم الله أوله وآخره فضحك النبي ﷺ ثم قال ما زال الشيطان يأكل معه فلما ذكر اسم الله عز وجل استقاء ما في بطنه
No references are available.
[Its isnad is hasan] Ahmad narrated it: 4/336, and Nasai in Al-Kubra, no. 10113, and in Amal al-Yawm wal-Layla, no. 282, from the hadith of Jabir bin Subh through this route. Hakim graded it sahih: 1/108, 109, and Dhahabi agreed with him. Muthanna bin Abdul-Rahman is hasan al-hadith. The hadith has corroborating witnesses, see Majma al-Zawaid: 5/22.