Nothing prevents one from going home to one’s family except prayer.

Sunan Abu Dawud Book 2 Hadith 80

Sunan Abu Dawud #470

Prayer (Kitab Al-Salat) 2:80

Abu Hurairah reported the Messenger of Allah (May peace be upon him) as saying; one is considered to be at prayer so long as one is detained by prayer:

Nothing prevents one from going home to one’s family except prayer.

Chapter: The Virtue Of Sitting In The Masjid

Grade: Sahih (Al-Albani)