Abu al-Malih reported: A man said, “I was riding on a mount behind the Prophet and it stumbled, so I said: May Satan perish!” The Prophet, peace and blessings be upon him, said, “Do not say: May Satan perish! If you say that, he will swell with pride until he becomes as big as a house and he says: By my might! Rather, you should say: In the name of Allah. If you say that, he will shrink until he becomes as small as a fly.”
Source: Sunan Abī Dāwūd 4982
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَبِي الْمَلِيحِ عَنْ رَجُلٍ قَالَ كُنْتُ رَدِيفَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَعَثَرَتْ دَابَّةٌ فَقُلْتُ تَعِسَ الشَّيْطَانُ فَقَالَ لَا تَقُلْ تَعِسَ الشَّيْطَانُ فَإِنَّكَ إِذَا قُلْتَ ذَلِكَ تَعَاظَمَ حَتَّى يَكُونَ مِثْلَ الْبَيْتِ وَيَقُولُ بِقُوَّتِي وَلَكِنْ قُلْ بِسْمِ اللَّهِ فَإِنَّكَ إِذَا قُلْتَ ذَلِكَ تَصَاغَرَ حَتَّى يَكُونَ مِثْلَ الذُّبَابِ
4982 سنن أبي داود كتاب الأدب باب لا يقال خبثت نفسي
4982 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح أبي داود