On a rainy day Ibn ʿAbbas said to his Mu'adh-dhin, "After saying, 'Ash-hadu anna Muhammadan Rasulullah' (I testify that Muhammad is Messenger of Allah ﷺ), do not say 'Haiya 'Alas-Salat' (come for the prayer) but say 'Pray in your houses'." (The man did so). But the people disliked it. Ibn ʿAbbas said, "It was done by one who was much better than I (i.e. the Prophet ﷺ ). No doubt, the Jumua prayer is compulsory but I dislike to put you to task by bringing you out walking in mud and slush."
أَنَّ مُحَمَّدًا رَسُولُ اللَّهِ فَلاَ تَقُلْ حَىَّ عَلَى الصَّلاَةِ قُلْ صَلُّوا فِي بُيُوتِكُمْ فَكَأَنَّ النَّاسَ اسْتَنْكَرُوا قَالَ فَعَلَهُ مَنْ هُوَ خَيْرٌ مِنِّي إِنَّ الْجُمُعَةَ عَزْمَةٌ وَإِنِّي كَرِهْتُ أَنْ أُخْرِجَكُمْ فَتَمْشُونَ فِي الطِّينِ وَالدَّحْضِ