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. (Using translation from Abū Dāʾūd 382)
كُنْتُ أَعْزَبَ شَابًّا أَبِيتُ فِي الْمَسْجِدِ فِي عَهْدِ رَسُولِ اللهِ ﷺ وَكَانَتِ الْكِلَابُ تُقْبِلُ وَتُدْبِرُ فِي الْمَسْجِدِ فَلَمْ يَكُونُوا يَرُشُّونَ شَيْئًا مِنْ ذَلِكَ