BUKHARI 901: from ʿAbdullāh b. al-Ḥārith Ibn ʿAm Muḥammad b. Sīrīn —
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."

البخاري ٩٠١: عن عبد الله بن الحارث ابن عم محمد بن سيرين —
أَنَّ مُحَمَّدًا رَسُولُ اللَّهِ فَلاَ تَقُلْ حَىَّ عَلَى الصَّلاَةِ قُلْ صَلُّوا فِي بُيُوتِكُمْ فَكَأَنَّ النَّاسَ اسْتَنْكَرُوا قَالَ فَعَلَهُ مَنْ هُوَ خَيْرٌ مِنِّي إِنَّ الْجُمُعَةَ عَزْمَةٌ وَإِنِّي كَرِهْتُ أَنْ أُخْرِجَكُمْ فَتَمْشُونَ فِي الطِّينِ وَالدَّحْضِ


Agreed Upon (Luʿluʿ wa-al-Marjān)
Bukhārī > Friday Prayer > § Not to attend the Jumu'ah (prayer) if it is raining.
hadithunlocked.com