The best prayer after the obligatory

Prayer in the night is the best voluntary prayer.

Narrated by Abu Hurairah

The best fast after Ramadan is the month of Allah, Muharram, and the best prayer after the obligatory prayer is the prayer at night.

Sahih Muslim 1163

What this hadith teaches

Even two rak'ahs before sleeping or before Fajr count as night prayer.

Reference and grade

Grade
Sahih (in Sahih Muslim)
Narrator
Abu Hurairah

The hadith in Arabic نص الحديث

أَفْضَلُ الصِّيَامِ بَعْدَ رَمَضَانَ شَهْرُ اللَّهِ الْمُحَرَّمُ وَأَفْضَلُ الصَّلاَةِ بَعْدَ الْفَرِيضَةِ صَلاَةُ اللَّيْلِ

Arabic text of Sahih Muslim 1163, as given on sunnah.com.