Abu Musa Ashari reported,

We prayed Maghrib with the Messenger of Allah ﷺ, then said to one another, "Why don't we stay until we pray Isha with him?" So we sat and waited.He came out to us and asked, "Are you still here?"We answered, "Messenger of Allah, we prayed Maghrib with you, then we said we would stay until we prayed Isha with you."He said, "You have done well," or, "You have done right."Then he raised his head to the sky, as he often did, and said, "The stars are a security for the sky. When the stars vanish, what has been promised will come upon the sky. I am a security for my companions. When I am gone, what has been promised will come upon my companions. And my companions are a security for my Ummah. When my companions are gone, what has been promised will come upon my Ummah."

Azami 14714

Sahih

عن أبي موسى الأشعري قال

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

الأعظمي 14714صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Hisbah, dawah, and the sermon
Section
Recommendation of raising the head toward the sky when speaking at appropriate times
Numbering
Jami al-Kamil 14714 (2nd edition)
Azami 14714