Abdullah bin Harith reported,

Ibn Abbas ordered the muezzin to give the call to prayer on a Friday that happened to be a rainy day. The muezzin called out, "Allah is the greatest, Allah is the greatest. I bear witness that there is no god but Allah. I bear witness that Muhammad is the Messenger of Allah."Then Ibn Abbas said to him, "Announce to the people that they should pray in their homes."The people said to him, "What is this that you have done?"He replied, "Someone better than I has done this. Would you have me bring the people out of their homes so they come to me wading through mud up to their knees?"

Ibn Majah 939

Sahih

حدثنا أحمد بن عبدة حدثنا عباد بن عباد المهلبي حدثنا عاصم الأحول

عن عبد الله بن الحارث بن نوفل

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

ابن ماجه 939صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Congregational prayer on a rainy night
Numbering
Darussalam 939
Ibn Majah 939