It is narrated from Sayyiduna Salman al-Farisi (may Allah be pleased with him) that a man entered the mosque when the Prophet (peace and blessings be upon him) had already prayed, so he (peace and blessings be upon him) said: "Will no one give charity to this man by praying with him?"
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6115