It is narrated from a Companion (may Allah be pleased with him) that once I was riding a donkey behind the Noble Prophet (peace and blessings be upon him). Suddenly, the donkey shied, and I uttered, "May the devil be ruined." The Noble Prophet (peace and blessings be upon him) said, "Do not say this, because when you say this phrase, the devil considers himself very great and says, 'I have overpowered him with my strength.' But when you say 'Bismillah' (In the name of Allah), he becomes so insignificant in his own eyes that he becomes even smaller than a fly."
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 23092
Hadith Gradingحکم دارالسلام:حديث صحيح، لكن اختلف فى هذا الإسناد على أبى تميمة