Sayyiduna Abu Huraira (may Allah be pleased with him) reports that the Messenger of Allah (peace and blessings be upon him) said: "When Allah intends good for someone, He grants him understanding of the religion."
Hadith Referenceمسند الشهاب / 345
Hadith Gradingمحدثین:إسناده ضعیف
Hadith Takhrijإسناده ضعیف ، ابومسلم محمد بن أحمد بن علی کی توثیق نہیں ملی ۔
Muhammad bin Ka'b says that Sayyiduna Mu'awiyah (may Allah be pleased with him) said from the pulpit of the Messenger of Allah (peace and blessings be upon him): "Allah Almighty grants understanding of the religion to whomever He intends good for." Sayyiduna Mu'awiyah (may Allah be pleased with him) said: I heard these words from the Messenger of Allah (peace and blessings be upon him).