On the authority if Abū Hurayrah (May Allah be pleased with him), who Sid: I heard the Messenger of Allah (May the blessings and peace of Allah be upon him) say:
The first of people against whom judgement will be pronounced on the Day of Resurrection.will be a man who has died a martyr. He will be brought and Allah will make known to him His favours and he will recognize them. [The Almighty] will say: And what did you do about them? He will say: I fought for You until I died a martyr. he will say: You have lied- you did but fight that it might be said [of you]: He is courageous. And so it was said. Then he will be ordered to be dragged along on his face until he is cast into Hell-fire. [Another] will be a man who has studied religious knowledge and has taught it and who used to recite the Quran. He will be brought and Allah will make known to him His favours and he will recognize them. [The Almighty] will say: And what did you do about them? He will say: I studied [religious] knowledge and I taught it and I recites the Qur'an foraYour sake. He will say: You have lied- you did but study [religious] knowledge that it might be said of you: He is a reciter. And so it was said. Then he will be ordered to be dragged along on his fave until he is cast into Hell-fire. [Another] will be a man whom Allah had made rich and to whom He had given all kinds of wealth. He will he brought and Allah will make known to him His favours and he will recognize them. [The Almighty] will say: And what did you do about them? He will say: I left no path [untrodden] in which You like money to be spent without spending it for Your sake. He will say: You have lied- you did but do so that it might be said [of you]: He is open-handed. And so it was said. Then he will be ordered to be dragged along on his face until he is cast into Hell-fire.
It was related by Muslim ( also by at-Tirmidhi as an-Nasa'ī).