Muhammad bin Khalid narrates from his father, from his grandfather, who was a Companion of the Prophet (peace and blessings be upon him). He said: I heard the Prophet (peace and blessings be upon him) say: "Indeed, when a station has been decreed for a servant by Allah Almighty which the man cannot reach through his deeds, Allah Almighty puts that person to trial in his body, or his wealth, or his children, and then grants him the ability to be patient over that trial, until Allah Almighty brings that person to the station that had already been decreed for him by Allah Almighty."
Tabarani recorded it in al-Mu'jam al-Kabir and al-Mu'jam al-Awsat, and Ahmad recorded it. It contains a full story. I do not know Muhammad bin Khalid or his father, and Allah knows best.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 3742
Hadith Gradingمحدثین:إسناده ضعیف
Hadith Takhrij«أخرجه مسند أحمد برقم: 21833، وأخرجه المعجم الأوسط للطبراني برقم: 1089»