The Prophet ﷺ forbade celibacy.
حدثنا حماد بن مسعدة حدثنا أشعث عن الحسن عن سعد بن هشام
أن النبي ﷺ نهى عن التبتل
No references are available.
Its isnad is sahih. Hammad bin Masada is trustworthy, and his hadith is found in the Jamaah collections. The hadith has already appeared at 24824.