(20) باب فِي فَضْلِ الْقُعُودِ فِي الْمَسْجِدِ
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.
Reference: Sunan Abi Dawud 470
In-book reference: Book 2, Hadith 80
English translation: Book 2, Hadith 470