← Sahih al-Bukhari
Sahih al-Bukhari · Hadith #4226 · Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)

Narrated Ibn `Umar:

حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، حَدَّثَنَا مَالِكٌ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم لأَصْحَابِ الْحِجْرِ ‏ "‏ لاَ تَدْخُلُوا عَلَى هَؤُلاَءِ الْمُعَذَّبِينَ إِلاَّ أَنْ تَكُونُوا بَاكِينَ، أَنْ يُصِيبَكُمْ مِثْلُ مَا أَصَابَهُمْ ‏"‏‏.‏

Allah's Messenger (ﷺ) said to his companions who were at Al-Hijr, "Do not enter upon these people who are
being punished, except in a weeping state, lest the same calamity as of theirs should befall you..."