Sahih al-Bukhari 600
Qurrah ibn Khālid narrated: ‘We waited for al-Ḥasan [al-Baṣrī] (rh). He took a considerable amount of time to come to us, until we neared the time of his departure. Then, he came and said: “These neighbours of ours invited us.” Then he narrated that Anas ibn Mālik (r.a) said: “One night, we waited for the Prophet (saw) until it was almost midnight. Then he came and led us in Prayer. Afterwards, he addressed us and said: ‘Listen, the people have offered the Prayer and gone to sleep but you have been in Prayer as long as you awaited the Prayer.’ Al-Ḥasan (rh) said: ‘People always remain upon [the path of] goodness as long as they are waiting for goodness.’”
Qurrah said that this was a ḥadīth reported by Anas (r.a) from the Prophet (saw).
Translation: Ahmadiyya Muslim Jamaat
Book 40: Talking about the Islamic jurisprudence and good things after the 'Isha prayer