We prayed Maghrib with the Messenger of Allah ﷺ, then we said, "What if we waited so we could pray Isha with him as well?" So we waited.He came out to us and asked, "Are you still here?"We replied, "Yes, Messenger of Allah. We stayed to pray Isha with you."He said, "You have done well," or "You have done right."Then he raised his head to the sky, and he often used to raise his head to the sky, and said, "The stars are a source of security for the sky. When the stars vanish, what has been promised will come to the sky. I am a source of security for my companions. When I am gone, what has been promised will come to my companions. And my companions are a source of security for my ummah. When my companions are gone, what has been promised will come to my ummah."
حدثنا علي بن عبد الله حدثنا حسين بن علي الجعفي عن مجمع بن يحيى بن زيد بن جارية الأنصاري قال سمعته يذكره عن سعيد بن أبي بردة عن أبي بردة
صلينا المغرب مع رسول الله ﷺ ثم قلنا لو انتظرنا حتى نصلي معه العشاء قال فانتظرنا فخرج إلينا فقال ما زلتم هاهنا قلنا نعم يا رسول الله قلنا نصلي معك العشاء قال أحسنتم أو أصبتم ثم رفع رأسه إلى السماء قال وكان كثيرا ما يرفع رأسه إلى السماء فقال النجوم أمنة للسماء فإذا ذهبت النجوم أتى السماء ما توعد وأنا أمنة لأصحابي فإذا ذهبت أتى أصحابي ما يوعدون وأصحابي أمنة لأمتي فإذا ذهبت أصحابي أتى أمتي ما يوعدون
Its chain of transmission is sahih. Husayn bin Ali Jafi is trustworthy and among the devout worshippers, and Mujammi bin Yahya bin Zayd bin Jariyah Ansari narrates from his father, and both are trustworthy. Muslim narrated the hadith, 4/1961, number 2531, as did Baghawi in Sharh al-Sunnah, 14/71.