It is narrated from the grandfather (may Allah be pleased with him) of Muhammad bin Khalid (may Allah have mercy on him), who had the honour of companionship with the Messenger of Allah (peace and blessings be upon him), that he said: I heard the Messenger of Allah (peace and blessings be upon him) say: "Indeed, when a rank has been decreed beforehand for a servant by Allah, the Mighty and Majestic, which he cannot reach through his deeds, Allah Almighty tests him in his body, or his wealth, or his children; then He grants him patience over it, until He brings him to the rank that had been decreed for him beforehand by Allah, the Mighty and Majestic."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith is not narrated from Abu Khalid (may Allah have mercy on him) except with this chain, and Abu al-Malih (may Allah have mercy on him) is alone in narrating it."
Hadith Referenceالمعجم الأوسط / باب الألف / 1085
Hadith Gradingمحدثین:فيه محمد بن خالد وأبوه لا يُعرفان
Hadith Takhrij«قال الهيثمي: فيه محمد بن خالد وأبوه لم أعرفهما «مجمع الزوائد ومنبع الفوائد، ج 2، ص 292»» «أخرجه أبو داود فى «سننه» برقم: 3090، والبيهقي فى «السنن الكبرى» برقم: 6641، وأحمد فى «مسنده» برقم: 22769، وأبو يعلى فى «مسنده» برقم: 923، والطبراني فى «الكبير» برقم: 801، 802»