Abdul-Rahman bin Abu Layla reported,

The companions of Muhammad ﷺ reported that they were traveling with the Prophet ﷺ when one of them fell asleep. Some of the others went over to a rope he had with him and took it, which startled him when he woke. The Messenger of Allah ﷺ said, "It is not lawful for a Muslim to frighten another Muslim."

Azami 14128

Sahih

عن عبد الرحمن بن أبي ليلى قال

حدثنا أصحاب محمد ﷺ أنهم كانوا يسيرون مع النبي ﷺ، فنام رجل منهم، فانطلق بعضهم إلى حبل معه فأخذه، ففزع، فقال رسول الله ﷺ: ((لا يحل لمسلم أن يروع مسلما)).

الأعظمي 14128صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Characteristics of Muslims, and their rights upon one another
Section
It is not permissible for a Muslim to frighten a Muslim
Numbering
Jami al-Kamil 14128 (2nd edition)
Azami 14128