Surah Bakra - verse 214.
﴿Or did you think that you would enter Paradise when the likeness of those who passed away before you came to you? Calamity and anguish touched them, and they were shaken. Until the Messenger and those who believed with him said: "When will God grant us victory? Indeed, God's victory is near.
Did you think you would enter heaven without the incidents and difficulties that happened to you? They fell into hardships and losses and became so shocked and confused that the prophet and those who believed with him said: "Then when will God's help come? Be aware that God's help is near.
Surah Ankabut, verse 2/3.
﴿According to the people, they will be left, and they will say, ``Amna, and they will not be tempted. '' And did the people think that as soon as they said, ``We have believed'', they would be released and not tested?
(And We tempted those who were before them. So Allah knows those who are truthful and He knows the liars.) And We tested those who believed before them; So God knows those who spoke the truth and exposes the liars.