It is narrated from Sayyiduna Abu Khalid al-Sulami (may Allah be pleased with him) that he said: I heard the Messenger of Allah (peace and blessings be upon him) say: "When a rank has been decreed for a servant by Allah which he cannot reach through his deeds, Allah tests him in his body, his wealth and his children, then grants him patience over that until he reaches the rank that had been decreed for him by Allah."
Hadith Referenceالمعجم الكبير للطبراني / مسند من يعرف بالكنى / 19004