(It) is due to Allah’s bounty and favour (i.e., the raising of the untaught Messenger and his presence amongst you). And Allah is All-Knowing, Most Wise
As bounty and favor from Allah... Allah is the Aleem, the Hakim.
Al-muntakhab fi tafsir al-Qur'an al-Karim
This is Allah's divine influence operating in men to regenerate and sanctify, to impart strength to endure trial and resist temptation; an efficacious grace effecting the end for which it is given; Allah is Alimun and Hakimun (Wise)