Hadith Q1276

إِنَّمَا أَرَادَ بَعْضَ التَّطَوُّعِ لَا كُلَّهُ، وَقَدْ أَعْلَمْتُ قَبْلُ فِي الْبَابِ الَّذِي تَقَدَّمَ أَنَّهُ لَمْ يُرِدْ بِهَذَا النَّهْيِ نَهْيًا عَنْ صَلَاةِ الْفَرِيضَةِ
The intention of the Prophet (peace be upon him) was to prohibit some voluntary prayers, not to prohibit all voluntary prayers. And I have already mentioned in the previous chapter that by this, the intention of the Prophet (peace be upon him) was also not to prohibit the obligatory prayer.
Hadith Reference صحيح ابن خزيمه / جماع أبواب الأوقات التى ينهى عن صلاة التطوع فيهن / Q1276