Sheikh Uthaimeen رحمه الله explains the
solution...
"Indeed the
Legislation orders us to keep away from
everything which causes regret … Allaah سُبحانه وتعال said:
إِنَّمَا
النَّجْوَى مِنَ الشَّيْطَانِ لِيَحْزُنَ الَّذِينَ آمَنُوا وَلَيْسَ بِضَارِّهِمْ
شَيْئًا إِلَّا بِإِذْنِ اللَّهِ وَعَلَى اللَّهِ فَلْيَتَوَكَّلِ الْمُؤْمِنُونَ
“Secret counsels
(conspiracies) are only from Satan, in order that he may cause grief to the
believers. But he cannot harm them in the least, except as Allaah permits.”
[Al-Mujadilah 58:10]
And Allaah سُبحانه
وتعالى only told us this so
that we keep away from it, it was not merely a piece of information telling us
that the Devil wants to cause us grief, no, what
is meant is that we keep away from everything which causes grief.
And for this reason the Prophet ﷺ said, “When there are three people, two should not
converse together to the exclusion of the third.”[Agreed upon]
So everything which
brings about sadness in a person is forbidden …
The Prophet ﷺ ordered a person who saw a dream that he disliked to
dry-spit to his left three times and seek Allaah’s Refuge from its evil and the
evil of the Devil and to then turn to the other side [to sleep on] and not to
tell anyone about it and to perform ablution and pray—all of this so that a
person can drive away all of these things [grief etc.] …