Sunan Abu Dawud #382
Purification (Kitab Al-Taharah) 1:382
Ibn 'Umar said:
I used to sleep in the mosque in the lifetime of the Messenger of Allah (ﷺ) when I was young and bachelor. The dogs would urinate frequently visit the mosque, and no one would sprinkle over it.