Sunan Abi Dawud, Book 2, Hadith 80 (Abu Dawud 470)

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.