أَلْهَمَهُ اللّٰهُ لِلْخَيْرِ
1.
[God directed him by inspiration to that which was good, or to prosperity] (TA, article وفق)
2.
أَلْهَمَهُ إِيَّاهُ
He suggested it to him; (in the order of the words, he suggested to him it;) he put it into his mind.