عن أم سلمة قالت قال رسول الله (صلى الله عليه وسلم): إذا أراد الله بعبده خيراً جعل له واعظا من قلبه
‘Allamah ‘Iraqi (rahimahullah) has referenced this narration to Musnadul Firdaws and has declared the chain authentic (jayyid).
(Al Mughni ‘An Hamlil Asfar, Hadith: 2590 and 4177. Also see: Faydul Qadir, Hadith: 378)
When Allah Ta’ala intends good for His slave, He makes his heart an admonisher/adviser.
A similar narration has also been reported as the statement of Imam Muhammad ibn Sirin (rahimahullah). See here.
And Allah Ta’ala Knows best.
Answered by: Moulana Suhail Motala
Approved by: Moulana Muhammad Abasoomar