NASAI-KUBRA 11210:
from Ibn ʿUmar —
(While we were going for the Battle of Tabuk and when we reached the places of the dwellers of Al- Hijr), Messenger of Allah ﷺ said about the dwellers of Al-Hijr (to us). "Do not enter (the dwelling places) of these people unless you enter weeping, but if you weep not, then do not enter upon them, lest you be afflicted with what they were afflicted with." (Using translation from Bukhārī 4702)
الكبرى للنسائي ١١٢١٠:
عن ابن عمر —
قَالَ رَسُولُ اللهِ ﷺ لِأَصْحَابِ الْحِجْرِ «لَا تَدْخُلُوا عَلَى هَؤُلَاءِ الْقَوْمِ الْمُعَذَّبِينَ إِلَّا أَنْ تَكُونُوا بَاكِينَ فَإِنْ لَمْ تَكُونُوا بَاكِينَ فَلَا تَدْخُلُوا عَلَيْهِمْ أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ»
hadithunlocked.com