The Prophet ﷺ said, "Whomever Allah wishes good for, He grants him understanding of the religion."
حدثنا سليمان قال أخبرنا إسماعيل قال أخبرني عبد الله بن سعيد بن أبي هند عن أبيه
أن النبي ﷺ قال من يرد الله به خيرا يفقه في الدين
Its isnad is sahih. Abdullah bin Saeed bin Abu Hind: his reliability was established earlier at 2075. His father Saeed bin Abu Hind Fazari, the freed slave of Samura bin Jundab, was a trustworthy follower of the companions.The hadith was related by Tirmidhi 3:369 through Ismail bin Jafar, and he said, this is a hasan sahih hadith.