There is a Hadith that talks about that - A man has many good deeds but Allah told the angel to take him to jannah with his mercy but the man wanted to enter jannah with his good deeds instead of Allah's mercy. So Allah asked him for his eyesight.
Can anyone provide the reference for this Hadith?