Abu Hurairah (RA) reported the Messenger of Allah (ﷺ) as saying: Everyone among you is constantly in prayer so long as the prayer detains him (for this noble objective) and nothing prevents him to return to his family but the prayer.
Hadith ReferenceSahih Muslim / The Book of Mosques and Places of Prayer / Hadith: 649