Abu Tamimah al-Hujaymi (may Allah have mercy on him) narrates from a Companion (may Allah be pleased with him) who rode behind the Prophet (peace and blessings be upon him) (or through someone who narrated from him, from that Companion) that he was riding behind him (peace and blessings be upon him) when the mount stumbled, so he said: "May Satan perish!" He (peace and blessings be upon him) said: "Do not do that, for when you say this he (Satan) grows so big in his own eyes that he becomes like a mountain and says: 'By my own strength I threw him down'; but when you say: 'In the name of Allah', he shrinks until he is left the size of a fly."
Imam Ahmad (may Allah have mercy on him) narrated it through the chain of Affan, from Shu'bah, from Asim al-Ahwal, from Abu Tamimah, from the one who rode behind the Prophet (peace and blessings be upon him) (the Companion who rode behind him), or through a man from the one who rode behind the Prophet (peace and blessings be upon him), with the like of it.
Imam al-Nasa'i (may Allah have mercy on him) narrated it in his book 'Amal al-Yawm wa al-Laylah' through the chain of Uthman bin Abdullah, from Ahmad bin Abdah.
And it is said that Khalid narrated it from Abu Tamimah, from Abu al-Malih, from the Prophet (peace and blessings be upon him) as mursal.