It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Every deed has a period of zeal, and every zeal is followed by a state of slackness and calm. So if the one who does it follows the path of moderation and the middle course, staying close to the straight path, then hope for good from him; but if he begins to be pointed at with fingers (because of showing off and fame), then do not count him (among the righteous)."
Imam Abu Ya'la al-Mawsili recorded this hadith, and Imam Ibn Hibban transmitted it from him in his Sahih.