He traced it back to the Prophet ﷺ, who said that he was asked which prayer is best after the obligatory prayers and which fast is best after the month of Ramadan.He replied, "The best prayer after the obligatory prayer is prayer in the depths of the night, and the best fast after the month of Ramadan is fasting in Allah's month, Muharram."
و حدثني زهير بن حرب حدثنا جرير عن عبد الملك بن عمير عن محمد بن المنتشر عن حميد بن عبد الرحمن
يرفعه قال سئل أي الصلاة أفضل بعد المكتوبة وأي الصيام أفضل بعد شهر رمضان فقال أفضل الصلاة بعد الصلاة المكتوبة الصلاة في جوف الليل وأفضل الصيام بعد شهر رمضان صيام شهر الله المحرم