Abdullah bin Abbas reported,

I was riding behind the Messenger of Allah ﷺ one day when he said, "Young man, let me teach you some words. 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. When you seek help, seek help from Allah. Know that if the entire nation were to gather together to benefit you with something, they could not benefit you except with what Allah has already written for you, and if they were to gather together to harm you with something, they could not harm you except with what Allah has already written against you. The pens have been lifted and the pages have dried."

Azami 13197

Hasan

عن ابن عباس، قال

كنت خلفت رسول الله ﷺ يوما، فقال: يا غلام إني أعلمك كلمات: احفظ الله يحفظك، احفظ الله تجده تجاهك، إذا سألت فاسأل الله، وإذا استعنت فاستعن بالله، واعلم أن الأمة لو اجتمعت على أن ينفعوك بشيء لم ينفعوك إلا بشيء قد كتبه الله لك، ولو اجتمعوا على أن يضروك بشيء لم يضروك إلا بشيء قد كتبه الله عليك، رفعت الأقلام، وجفت الصحف.

الأعظمي 13197حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Zumar
Section
His saying, "And if you were to ask them who created the heavens and the earth and subjected the sun and the moon, they would surely say Allah. Then how are they deluded?"
Numbering
Jami al-Kamil 13197 (2nd edition)
Azami 13197