AHMAD 20690: from Abū Tamīmah —
[Machine] From the companion of the Prophet ﷺ or from a man from the companion of the Prophet ﷺ , that he was riding on a donkey and stumbled. So he said (to the donkey), "May the devil be cursed!" (The Prophet) said, "Do not say, 'May the devil be cursed,' for if you say, 'May the devil be cursed,' he becomes greater. Instead, say, 'In the name of Allah,' and he will be minimized until he becomes like a fly."

أحمد ٢٠٦٩٠: عن ابو تميمه —
عَنْ رِديفِ النَّبِيِّ ﷺ أَوْ عَنْ رَجُلٍ عَنْ رِدْفِ النَّبِيِّ ﷺ أَنَّهُ كَانَ عَلَى حِمَارٍ فَعَثَرَ فَقَالَ الَّذِي خَلْفَهُ تَعِسَ الشَّيْطَانُ فَقَالَ لَا تَقُلْ تَعِسَ الشَّيْطَانُ فَإِنَّكَ إِذَا قُلْتَ تَعِسَ الشَّيْطَانُ تَعَاظَمَ وَقَالَ بِعِزَّتِي صَرَعْتُكَ وَإِذَا قُلْتَ بِسْمِ اللهِ تَصَاغَرَ حَتَّى يَصِيرَ مِثْلَ ذُبَابٍ


Sound Chain (Arnaʾūṭ)
Aḥmad > Baṣrans > § [Machine] Companion of the Prophet ﷺ
hadithunlocked.com