BUKHARI 433: from ʿAbdullāh b. ʿUmar —

Messenger of Allah ﷺ said, "Do not enter (the places) of these people where Allah's punishment had fallen unless you do so weeping. If you do not weep, do not enter (the places of these people) because Allah's curse and punishment which fell upon them may fall upon you."

البخاري ٤٣٣: عن عبد الله بن عمر —

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ تَدْخُلُوا عَلَى هَؤُلاَءِ الْمُعَذَّبِينَ إِلاَّ أَنْ تَكُونُوا بَاكِينَ فَإِنْ لَمْ تَكُونُوا بَاكِينَ فَلاَ تَدْخُلُوا عَلَيْهِمْ لاَ يُصِيبُكُمْ مَا أَصَابَهُمْ


Agreed Upon (Luʿluʿ wa-al-Marjān)
Bukhārī > Ṣalāh (Ritual Prayer) > § (What is said about) offering Salat (Prayer) at the places...
hadithunlocked.com