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.
ابْنُ عُمَرَ كُنْتُ أَبِيتُ فِي الْمَسْجِدِ فِي عَهْدِ رَسُولِ اللَّهِ ﷺ وَكُنْتُ فَتًى شَابًّا عَزَبًا وَكَانَتِ الْكِلاَبُ تَبُولُ وَتُقْبِلُ وَتُدْبِرُ فِي الْمَسْجِدِ فَلَمْ يَكُونُوا يَرُشُّونَ شَيْئًا مِنْ ذَلِكَ