Sahih al-Bukhari Book 10, Hadith 62
Ibn `Abbas addressed us on a (rainy and) muddy day and when the Mu'adh-dhin said, "Come for the
prayer" Ibn `Abbas ordered him to say, "Pray in your homes." The people began to look at one another
with surprise as if they did not like it. Ibn `Abbas said, "It seems that you thought ill of it but no doubt
it was done by one who was better than I (i.e. the Prophet). It (the prayer) is a strict order and I
disliked to bring you out."
Ibn `Abbas narrated the same as above but he said, "I did not like you to make you sinful (in
refraining from coming to the mosque) and to come (to the mosque) covered with mud up to the
knees."
`Itban bin Malik used to lead his people (tribe) in prayer and was a blind man, he said to Allah's Apostle , "O Allah's Messenger (ﷺ)! At times it is dark and flood water is flowing (in the valley) and I am blind man, so please pray at a place in my house so that I can take it as a Musalla (praying place)." So Allah's Messenger (ﷺ) went to his house and said, "Where do you like me to pray?" 'Itban pointed to a place in his house and Allah's Messenger (ﷺ), offered the prayer there.
A cloud came and it rained till the roof started leaking and in those days the roof used to be of the branches of date-palms. Iqama was pronounced and I saw Allah's Messenger (ﷺ)s prostrating in water and mud and even I saw the mark of mud on his forehead.