Sunan an-Nasa'i 2536
It was narrated from Abu Sa'eed that:
a man entered the Msjid on a Friday when the Messenger of Allah was delivering the Khutbah, and he said: "Pray two Rak'ahs." Then he came on the following Friday, when the Prophet was delivering the Khutbah and he said: "Pray two Rak'ahs." Then he came on the third Friday, when the Prophet was delivering Khutbah and he said: "Pray two Rak'ahs." Then he said: "Give in charity."  So they gave in charity, and he gave him (that man) two garments. Then he said: "Give in charity" and (that man) threw one of his two garments. The Messenger of Allah said: "Have you not seen this man? He entered the Masjid in scruffy clothes and I hoped that you would notice him, and give charity to him, but you did not do that, So I said, 'Give in charity.' You gave in charity, and I gave him two garments, then I said; 'Give in charity' and he threw one of his two garments. Take your garment." And he rebuked him.
أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، قَالَ حَدَّثَنَا يَحْيَى، قَالَ حَدَّثَنَا ابْنُ عَجْلاَنَ، عَنْ عِيَاضٍ، عَنْ أَبِي سَعِيدٍ، أَنَّ رَجُلاً، دَخَلَ الْمَسْجِدَ يَوْمَ الْجُمُعَةِ وَرَسُولُ اللَّهِ صلى الله عليه وسلم يَخْطُبُ فَقَالَ ‏"‏ صَلِّ رَكْعَتَيْنِ ‏"‏ ‏.‏ ثُمَّ جَاءَ الْجُمُعَةَ الثَّانِيَةَ وَالنَّبِيُّ صلى الله عليه وسلم يَخْطُبُ فَقَالَ ‏"‏ صَلِّ رَكْعَتَيْنِ ‏"‏ ‏.‏ ثُمَّ جَاءَ الْجُمُعَةَ الثَّالِثَةَ فَقَالَ ‏"‏ صَلِّ رَكْعَتَيْنِ ‏"‏ ‏.‏ ثُمَّ قَالَ ‏"‏ تَصَدَّقُوا ‏"‏ ‏.‏ فَتَصَدَّقُوا فَأَعْطَاهُ ثَوْبَيْنِ ثُمَّ قَالَ ‏"‏ تَصَدَّقُوا ‏"‏ ‏.‏ فَطَرَحَ أَحَدَ ثَوْبَيْهِ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ أَلَمْ تَرَوْا إِلَى هَذَا إِنَّهُ دَخَلَ الْمَسْجِدَ بِهَيْئَةٍ بَذَّةٍ فَرَجَوْتُ أَنْ تَفْطُنُوا لَهُ فَتَصَدَّقُوا عَلَيْهِ فَلَمْ تَفْعَلُوا فَقُلْتُ تَصَدَّقُوا ‏.‏ فَتَصَدَّقْتُمْ فَأَعْطَيْتُهُ ثَوْبَيْنِ ثُمَّ قُلْتُ تَصَدَّقُوا ‏.‏ فَطَرَحَ أَحَدَ ثَوْبَيْهِ خُذْ ثَوْبَكَ ‏"‏ ‏.‏ وَانْتَهَرَهُ ‏.‏