Narrated Ibn 'Abbas:
that the Messenger of Allah (ﷺ) said: "For whomever Allah wants good, he gives him understanding in the religion.