It is narrated from Sayyiduna Abu Kabshah al-Anmari (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "The example of my Ummah is that of four men: A man whom Allah gave wealth, which he spent in obedience to Allah; another man saw him and said: 'If I had wealth like his, I would do the same as he has done,' so the two of them are equal in reward. And a man whom Allah gave wealth, and he spent it recklessly and squandered it; another man saw him and said: 'If I had wealth like his, I would do the same as he has done,' so the two of them are equal in sin."
Hadith Referenceالمعجم الكبير للطبراني / مسند من يعرف بالكنى / 19073