The Messenger of Allah ﷺ used to remember Allah at all times.
حدثنا أبو كريب ومحمد بن عبيد المحاربي قالا حدثنا يحيى بن زكريا بن أبي زائدة عن أبيه عن خالد بن سلمة عن البهي عن عروة
كان رسول الله ﷺ يذكر الله على كل أحيانه
No references are available.
Muslim also reported it in the Book of Menstruation, chapter on remembering Allah during janaba and other states, hadith no. 373, from Abu Kurayb through the same chain, and Bukhari mentioned it without a full chain in the Book of Adhan, chapter 19.