When the enemies of the Prophet (sallAllāhu ʿalayhi wasallam) twisted his name to “Mudhammam” (meaning the “dispraised” instead of praised one), he said to his companions,
أَلاَ تَعْجَبُونَ كَيْفَ يَصْرِفُ اللَّهُ عَنِّي شَتْمَ قُرَيْشٍ وَلَعْنَهُمْ يَشْتِمُونَ مُذَمَّمًا وَيَلْعَنُونَ مُذَمَّمًا وَأَنَا مُحَمَّدٌ
“Doesn’t it astonish you how Allāh protects me from the Quraish’s abusing and cursing? They abuse “Mudhammam” and curse “Mudhammam” while I am Muḥammad.” [Bukhari]
This is absolute genius thinking from the Prophet (sallAllāhu ʿalayhi wasallam), he flipped the propaganda and attacks on him through positive thinking. Similarly, we should strive to think in an optimistic manner in situations that could harm us emotionally.