Abu al-‘Abbas ‘Abdullah bin ‘Abbas, radiyallahu anhuma, reported: One day I was behind the Prophet, sallallahu ‘alayhi wasallam, and he said to me:
"O young man, I shall teach you some words [of advice] : Be mindful of Allah, and Allah will protect you. Be mindful of Allah, and you will find Him in front of you. If you (have need to) ask, ask of Allah; and if you seek help, seek help from Allah. Know that even if the Nation (or the whole community) were to gather together to benefit you with something, they would not benefit you with anything except that which Allah has already recorded for you, and that if they gather together to harm you with something, they would not be able to harm you with anything except that which Allah has already recorded against you. The pens have been lifted and the pages have dried."
[Al-Tirmidhi relates this and says: It is a good, genuine Hadith]