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.
It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that the Noble Prophet (peace and blessings be upon him) prayed two rak‘ahs after ‘Asr because he had not been able to pray any (Sunnah or Nafl) prayer after the Zuhr prayer.
Hadith Referenceصحيح ابن خزيمه / جماع أبواب الأوقات التى ينهى عن صلاة التطوع فيهن / 1276