Salaam all,
I remember hearing a hadith of Prophet Muhammad (saw) in a lecture on moderation. On my rough recollection, the hadith was based on a man whom the Prophet (saw) noticed in the masjid all the time and wondered if he had a family. The man told the Prophet (saw) he did indeed have a family, but he would rather spend his time in ibadah. Then the Prophet (saw) told the man to be moderate and not be excessive in ibada to the point where he neglects his own family.
This may not be exact content of the hadith, but I remember this to be the moral of the story. Does anyone know which hadith I am referring with sources? Any help would be much appreciated.