Ibn ‘Abbas (RA) narrated: “I was behind the Prophet (peace be upon him) one day when he said:
‘O boy! I will teach you a statement: Be mindful of Allah and He will protect you. Be mindful of Allah and you will find Him before you. When you ask, ask Allah, and when you seek aid, seek Allah’s aid. Know that if the entire creation were to gather together to do something to benefit you- you would never get any benefit except that Allah had written for you. And if they were to gather to do something to harm you- you would never be harmed except that Allah had written for you. The pens are lifted and the pages are dried.'”
(Jami`at-Tirmidhi, Vol. 4, Book 37, Hadith 2706)