Surah Taghabun, verse 11
No calamity befalls, but by the Leave (decision and Qadar) of Allah swt, and whosoever believes in Allah swt, He guides his heart (to the true faith with certainty, what has befallen him was already written for him by Allah swt) And Allah swt is the All-Knower of everything