Sahih al-Bukhari 7312
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ، وَإِنَّمَا أَنَا قَاسِمٌ وَيُعْطِي اللَّهُ، وَلَنْ يَزَالَ أَمْرُ هَذِهِ الأُمَّةِ مُسْتَقِيمًا حَتَّى تَقُومَ السَّاعَةُ، أَوْ حَتَّى يَأْتِيَ أَمْرُ اللَّهِ "
Narrated Humaid:
I heard Muawiya bin Abi Sufyan delivering a sermon. He said, "I heard the Prophet (ﷺ) saying, "If Allah wants to do a favor to somebody, He bestows on him, the gift of understanding the Qur'an and Sunna. I am but a distributor, and Allah is the Giver. The state of this nation will remain good till the Hour is established, or till Allah's Order comes."
Full reference and source
Sahih al-Bukhari 7312 In-book : Book 96, Hadith 43 USC-MSA web (English) : Vol. 9, Book 92, Hadith 415 (deprecated)
View source on Sunnah.com (opens in a new tab)