Muawiya bin Abu Sufyan reported,

The Messenger of Allah ﷺ said, "Whoever Allah intends good for, He grants him understanding of the religion. Allah is the One who gives, and I am merely the one who distributes. This nation will continue to prevail over those who oppose them until the command of Allah comes, while they remain victorious."

Bukhari 3116

Sahih

حدثنا حبان بن موسى أخبرنا عبد الله عن يونس عن الزهري عن حميد بن عبد الرحمن أنه سمع

معاوية يقول

قال رسول الله ﷺ من يرد الله به خيرا يفقهه في الدين والله المعطي وأنا القاسم ولا تزال هذه الأمة ظاهرين على من خالفهم حتى يأتي أمر الله وهم ظاهرون

البخاري 3116صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Obligation of the fifth
Chapter
His saying, "Then to Allah belongs one fifth of it"
Numbering
Darussalam 3116
Bukhari 3116