Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:8422[Chain 1] Abū Naṣr al-Fāmī > Abū ʿAbdullāh Muḥammad b. Yaʿqūb > Yaḥyá b. Muḥammad b. Yaḥyá > al-Ḥajabī And Musaddad > Abū ʿAwānah [Chain 2] Abū al-Ḥasan ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > Ziyād b. al-Khalīl > Musaddad > Abū ʿAwānah > ʿAbd al-Malik b. ʿUmayr > Muḥammad b. al-Muntashir > Ḥumayd b. ʿAbd al-Raḥman al-Ḥimyarī > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said, "The best fasting after Ramadan is the fasting in the month of Allah, which you call Muharram, and the best prayer after the obligatory prayer is the prayer in the middle of the night. And likewise..."  

البيهقي:٨٤٢٢وَأَخْبَرَنَا أَبُو نَصْرٍ الْفَامِيُّ ثنا أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا يَحْيَى بْنُ مُحَمَّدِ بْنِ يَحْيَى ثنا الْحَجَبِيُّ وَمُسَدَّدٌ قَالَا ثنا أَبُو عَوَانَةَ ح وَأَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنِ أَحْمَدَ بْنِ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا زِيَادُ بْنُ الْخَلِيلِ ثنا مُسَدَّدٌ ثنا أَبُو عَوَانَةَ عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ عَنْ مُحَمَّدِ بْنِ الْمُنْتَشِرِ عَنْ حُمَيْدِ بْنِ عَبْدِ الرَّحْمَنِ الْحِمْيَرِيِّ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ أَفْضَلُ الصِّيَامِ بَعْدَ شَهْرِ رَمَضَانَ شَهْرُ اللهِ الَّذِي تَدْعُونَهُ الْمُحَرَّمَ وَأَفْضَلُ الصَّلَاةِ بَعْدَ الْمَفْرُوضَةِ الصَّلَاةُ فِي جَوْفِ اللَّيْلِ وَكَذَلِكَ  

رَوَاهُ زَائِدَةُ وَجَرِيرُ بْنُ عَبْدِ الْحَمِيدِ عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ أَمَّا حَدِيثُ زَائِدَةَ فَقَدْ مَضَى فِي كِتَابِ الصَّلَاةِ وَأَمَّا حَدِيثُ جَرِيرٍ

See similar narrations below:

Collected by Bayhaqī
bayhaqi:8424Abū Aḥmad ʿAbdullāh b. Muḥammad b. al-Ḥasan al-Mihrajānī al-ʿAdl > Aḥmad b. Muḥammad b. ʿAbdūs al-ʿAnazī > ʿUthmān b. Saʿīd al-Dārimī > al-Rabīʿ b. Nāfiʿ Abū Tawbah al-Ḥalabī > ʿUbaydullāh b. ʿAmr > ʿAbd al-Malik b. ʿUmayr > Jundub b. Sufyān al-Bajalī

"The Messenger of Allah ﷺ said: 'The best fasting after the month of Ramadan is the month of Allah, Al-Muharram, and the best prayer is prayer at night.'" (Using translation from Nasāʾī 1613)   

البيهقي:٨٤٢٤كَمَا أَخْبَرَنَا أَبُو أَحْمَدَ عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ الْحَسَنِ الْمِهْرَجَانِيُّ الْعَدْلُ ثنا أَحْمَدُ بْنُ مُحَمَّدِ بْنِ عَبْدُوسٍ الْعَنَزِيُّ ثنا عُثْمَانُ بْنُ سَعِيدٍ الدَّارِمِيُّ ثنا الرَّبِيعُ بْنُ نَافِعٍ أَبُو تَوْبَةَ الْحَلَبِيُّ أَنَّ عُبَيْدَ اللهِ بْنَ عَمْرٍو حَدَّثَهُمْ عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ عَنْ جُنْدُبِ بْنِ سُفْيَانَ الْبَجَلِيِّ قَالَ

كَانَ النَّبِيُّ ﷺ يَقُولُ إِنَّ أَفْضَلَ الصَّلَاةِ بَعْدَ الْمَفْرُوضَةِ الصَّلَاةُ فِي جَوْفِ اللَّيْلِ وَإِنَّ أَفْضَلَ الصِّيَامِ بَعْدَ شَهْرِ رَمَضَانَ شَهْرُ اللهِ الَّذِي تَدْعُونَهُ الْمُحَرَّمَ