He said that God’s Messenger gave them this command, “When you are in the mosque and the call to prayer is made, none of you must go out before he prays.”
Abu Huraira reported the Prophet as saying, “Were it not for the women and children who are in the houses I would make the evening prayer congregational and command my young men to burn what is in the houses with fire.”
Abush Sha'tha’ said that a man went out of the mosque after the adhan had been called in it, and Abu Huraira said, “This man has disobeyed Abul Qasim.”
I have seen the time when no one stayed away from prayer except a hypocrite whose hypocrisy was well known, or a sick man, but if a sick man could walk with one on each side of him he would come to prayer. He also said: God’s Messenger taught us the paths of right guidance, among which is prayer in the mosque in which the adhan is called. In a version he said: If anyone would like to meet God tomorrow as a Muslim he should persevere in observing these five times of prayer where the announcement for them is made, for God has laid down for your Prophet the paths of right guidance, among which are the prayers. If you were to pray in your houses as this man who stays away prays in his house, you would abandon the practice of your Prophet, and if you were to abandon the practice of your Prophet you would go astray. No man purifies himself, doing it well, then makes for one of these mosques, without God recording a blessing for him for every step he takes, raising him a degree for it and removing a sin from him for it. I have seen the time when no one stayed away from it except a hypocrite who was well known as such, whereas a man would be brought swaying* between two men till he was set up in the row.”