It was the practice of the Prophet (peace and blessings be upon him):
"He (peace and blessings be upon him) used to remember Allah Almighty at all of his times."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4943
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[م د ت هـ] عن عائشة. الصحيحة ٤٠٦، صحيح أبي داود ١٥، مختصر مسلم ١٦٩.