Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:3725Yaʿqūb b. Ḥumayd b. Kāsib > Salamah b. Rajāʾ > al-Walīd b. Jamīl al-Dimashqī > al-Qāsim b. ʿAbd al-Raḥman > Abū Umāmah

"The Prophet ﷺ passed by a man who was sleeping in the masjid, lying on his face. He struck him with his foot and said: 'Get up' or; 'Sit up, fo this is a hellish kind of sleep.'"  

ابن ماجة:٣٧٢٥حَدَّثَنَا يَعْقُوبُ بْنُ حُمَيْدِ بْنِ كَاسِبٍ حَدَّثَنَا سَلَمَةُ بْنُ رَجَاءٍ عَنِ الْوَلِيدِ بْنِ جَمِيلٍ الدِّمَشْقِيِّ أَنَّهُ سَمِعَ الْقَاسِمَ بْنَ عَبْدِ الرَّحْمَنِ يُحَدِّثُ عَنْ أَبِي أُمَامَةَ قَالَ

مَرَّ النَّبِيُّ ﷺ عَلَى رَجُلٍ نَائِمٍ فِي الْمَسْجِدِ مُنْبَطِحٍ عَلَى وَجْهِهِ فَضَرَبَهُ بِرِجْلِهِ وَقَالَ قُمْ وَاقْعُدْ فَإِنَّهَا نَوْمَةٌ جَهَنَّمِيَّةٌ  


See similar narrations below:

Collected by Ṭabarānī
tabarani:7914Aḥmad b. ʿAmr al-Khallāl al-Makkī > Yaʿqūb b. Ḥumayd > Salamah b. Rajāʾ > al-Walīd b. Jamīl > al-Qāsim > Abū Umāmah

"The Prophet ﷺ passed by a man who was sleeping in the masjid, lying on his face. He struck him with his foot and said: 'Get up' or; 'Sit up, fo this is a hellish kind of sleep.'" (Using translation from Ibn Mājah 3725)   

الطبراني:٧٩١٤حَدَّثَنَا أَحْمَدُ بْنُ عَمْرٍو الْخَلَّالُ الْمَكِّيُّ ثنا يَعْقُوبُ بْنُ حُمَيْدٍ ثنا سَلَمَةُ بْنُ رَجَاءٍ عَنِ الْوَلِيدِ بْنِ جَمِيلٍ عَنِ الْقَاسِمِ عَنْ أَبِي أُمَامَةَ قَالَ

مَرَّ النَّبِيُّ ﷺ عَلَى رَجُلٍ مُنْبَطِحٍ عَلَى وَجْهِهِ فَضَرَبَهُ بِرِجْلِهِ وَقَالَ «قُمْ فَإِنَّهَا نَوْمَةٌ جَهَنَّمِيَّةٌ»