حَدَّثَنَا أَبُو كُرَيْبٍ ، حَدَّثَنَا يُونُسُ بْنُ بُكَيْرٍ ، حَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ ، حَدَّثَنَا أَبُو زُرْعَةَ ، حَدَّثَنَا أَبُو هُرَيْرَةَ ، قَالَ : قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ : إِنَّ الرَّجُلَ لَيَكُونُ لَهُ عِنْدَ اللهِ الْمَنْزِلَةُ ، فَمَا يَبْلُغُهَا بِعَمَلٍ فَمَا يَزَالُ اللهُ يَبْتَلِيهِ بِمَا يَكْرَهُ ، حَتَّى يُبَلِّغَهُ إِيَّاهَا .
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, a man has a particular high rank (decreed) for him with Allah, the Mighty and Majestic, which he does not attain through his deeds alone; so Allah Almighty continues to try him with disliked trials and hardships until He brings him to that lofty rank."
Related hadith on this topic