Weeping while Passing by the Graves of the Infidals

Imam Al-Nawawi’s Riyad-us-Saliheen
Chapter 165
Weeping while Passing by the Graves of the Infidals

955. Ibn `Umar (May Allah be pleased with them) reported: When the Messenger of Allah (sallallaahu ’alayhi wa sallam) and his Companions reached Al-Hijr, the dwellings of the Thamud people, he admonished his Companions (saying), “Do not pass by these people who are being tormented, without weeping, lest the punishment should befall you as it had befallen them.”
[Al-Bukhari and Muslim].

Another narration is: Ibn `Umar (May Allah be pleased with them) said: When the Messenger of Allah (sallallaahu ’alayhi wa sallam) passed near Al-Hijr, he said, “Do not enter without weeping, the dwellings of those who wronged themselves, lest the same chastisement should fall upon you as it had fallen upon them.” Messenger of Allah (sallallaahu ’alayhi wa sallam) then covered his head and sped up until he crossed the valley of the tormented people.