Abdullah bin Abbas reported,

When you say, "I bear witness that Muhammad is the Messenger of Allah," do not say, "Come to prayer." Say instead, "Pray in your homes."The people seemed to find this objectionable, so he said, "One who is better than I did this. Friday prayer is an obligation, but I disliked causing you hardship by making you walk through mud and slippery ground."

Bukhari 901

Sahih

حدثنا مسدد قال حدثنا إسماعيل قال أخبرني عبد الحميد صاحب الزيادي قال حدثنا عبد الله بن الحارث ابن عم محمد بن سيرين

قال ابن عباس لمؤذنه في يوم مطير

إذا قلت أشهد أن محمدا رسول الله فلا تقل حي على الصلاة قل صلوا في بيوتكم فكأن الناس استنكروا قال فعله من هو خير مني إن الجمعة عزمة وإني كرهت أن أحرجكم فتمشون في الطين والدحض

البخاري 901صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Friday
Chapter
Permission not to attend Friday prayer in the rain
Numbering
Darussalam 901
Bukhari 901