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. (Using translation from Nasāʾī 2536)
إِنَّ رَجُلًا دَخَلَ الْمَسْجِدَ فِي يَوْمِ الْجُمُعَةِ وَرَسُولُ اللهِ ﷺ يَخْطُبُ فَقَالَ «صَلِّ رَكْعَتَيْنِ» ثُمَّ جَاءَ الْجُمُعَةَ الثَّانِيَةَ وَالنَّبِيُّ ﷺ يَخْطُبُ فَقَالَ «صَلِّ رَكْعَتَيْنِ» ثُمَّ جَاءَ الْجُمُعَةَ الثَّالِثَةَ فَقَالَ عَلَيْهِ السَّلَامُ «صَلِّ رَكْعَتَيْنِ» ثُمَّ قَالَ تَصَدَّقُوا فَتَصَدَّقُوا فَأَعْطَاهُ ثَوْبَيْنِ ثُمَّ قَالَ «تَصَدَّقُوا» فَطَرَحَ أَحَدَ ثَوْبَيْهِ فَقَالَ رَسُولُ اللهِ ﷺ أَلَمْ تَرَوْا إِلَى هَذَا الرَّجُلِ؟ إِنَّهُ دَخَلَ الْمَسْجِدَ فِي هَيْئَةٍ بَذَّةٍ فَرَجَوْتُ أَنْ تَفْطِنُوا لَهُ فَتَصَدَّقُوا عَلَيْهِ فَلَمْ تَفْعَلُوا فَقُلْتُ تَصَدَّقُوا فَتَصَدَّقْتُمْ فَأَعْطَيْتُهُ ثَوْبَيْنِ ثُمَّ قُلْتُ تَصَدَّقُوا فَطَرَحَ أَحَدَ ثَوْبَيْهِ خُذْ ثَوْبَكَ وَانْتَهَرَهُ