وعن أُمَيَّةَ بن مَخْشِيٍّ الصحابيِّ - رضي الله عنه - قَالَ: كَانَ رسولُ الله - صلى الله عليه وسلم - جَالِسًا، وَرَجُلٌ يَأكُلُ، فَلَمْ يُسَمِّ اللهَ حَتَّى لَمْ يَبْقَ مِنْ طَعَامِهِ إِلاَّ لُقْمَةٌ، فَلَمَّا رَفَعَهَا إِلَى فِيهِ، قَالَ: بِسْمِ اللهِ أوَّلَهُ وَآخِرَهُ، فَضَحِكَ النَّبيّ - صلى الله عليه وسلم - ثُمَّ قَالَ: «مَا زَالَ الشَّيْطَانُ يَأكُلُ مَعَهُ، فَلَمَّا ذَكَرَ اسمَ اللهِ اسْتَقَاءَ مَا فِي بَطْنِهِ». رواه أَبُو داود والنسائي.
It is narrated from Sayyiduna Umayyah bin Makhshi, the Companion (may Allah be pleased with him), that he said: The Messenger of Allah (peace and blessings be upon him) was sitting, and a man was eating. He did not mention the name of Allah until nothing remained of his food except one morsel. When he raised it to his mouth, he said: "In the name of Allah, at its beginning and at its end." At this the Prophet (peace and blessings be upon him) laughed, then said: "Satan kept eating with him, and when he mentioned the name of Allah, he (Satan) vomited what was in his belly."
(Narrated by Abu Dawud and al-Nasa'i)
Related hadith on this topic