βAnd if it should happen that a prompting from Satan stirs thee up [to blind anger], seek refuge with Allah: behold, He is all-hearing, all-knowing.β Al-Quran (7:200)
Allah will always replace what you had with what is better for you. But consider that what is better for you may still not be what you dreamt of for yourself.
βAnd there are among them unlettered people who have no real knowledge of the divine writ, [following] only wishful beliefs and depending on nothing but conjecture.β Al-Quran (2:78)