From Sahih Bukhari (Hadith 2467):
Narrated Usama bin Zaid:Once the Prophet (ﷺ) stood at the top of one of the castles (or higher buildings) of Medina and said, "Do you see what I see? No doubt I am seeing the spots of afflictions amongst your houses as numerous as the spots where raindrops fall (during a heavy rain). (See Hadith No)
Reference: Bukhari 2467