Abdullah bin Harith reported,

Ibn Abbas delivered a sermon to us on a muddy day. When the muezzin reached the words "Come to prayer," Ibn Abbas instructed him to say instead, "Pray in your dwellings." The people looked at one another as if they disapproved.So he said, "It seems you find this strange. Yet someone better than me did exactly this," meaning the Prophet ﷺ. "The Friday prayer is an obligation, and I disliked putting you to hardship."Hammad reported from Asim, from Abdullah bin Harith, from Ibn Abbas a similar narration, except that he said, "I disliked causing you to sin by coming here wading through mud up to your knees."

Bukhari 668

Sahih

حدثنا عبد الله بن عبد الوهاب قال حدثنا حماد بن زيد قال حدثنا عبد الحميد صاحب الزيادي قال سمعت

عبد الله بن الحارث قال

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

البخاري 668صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Should the imam pray with those present and should he deliver the khutbah on Friday in the rain
Numbering
Darussalam 668
Bukhari 668