Do not be sad if you did not manage to do what you planned

It is reported that Ibn Mas’ud (may Allah be pleased with him) said:
“ Indeed, a person can desire something related to trade or power, and this matter is already close to incarnation, and then Allah, who is above the seven heavens, mentions him and says to the angels: “Keep him from this deed, for truly, if I make it easier for him to do this deed, then I will bring him into Hell for it! 
Then one of the angels comes and prevents him from doing this, and that person begins to blame his neighbors for this failure, referring to a bad sign, and saying:” So-and-so jinxed me “,” So-and-so got ahead of me. “

However, in fact, it was Allah Almighty who kept him from this business, thereby showing him mercy! “
Abu Dawud, in al-Zuhd (191),
Hafiz al-Zahabi and Imam Ibn al-Qayyim confirmed the authenticity of the isnad of this report, and Sheikh al-Albani, mentioning their assessments, did not object to them. See “Mukhtasar al-‘Uluu” (p. 104), “Ijtima ‘al-juyush” (p. 100).

Allah Almighty said in the Qur’an: “Perhaps you are unpleasant about what is good for you. And maybe you love what is bad for you. Allah knows, but you do not know ”(2: 216).