Jabir bin Abdullah reported,

The Messenger of Allah ﷺ came out to his companions one night while they were waiting for the evening prayer and said, "The people have prayed and gone to sleep, while you have been waiting for it. You are in a state of prayer as long as you await it."

Azami 3046

Sahih

عن جابر قال

خرج رسول الله ﷺ على أصحابه ذات ليلة، وهم ينتظرون العشاء فقال: صلى الناس ورقدوا، وأنتم تنتظرونها، أما إنكم في صلاة ما انتظرتموها.

الأعظمي 3046صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Staying in the mosques and waiting for the prayer
Numbering
Jami al-Kamil 3046 (2nd edition)
Azami 3046