The Prophet ﷺ forbade celibacy.Abdullah said, my father narrated this to me and said, I did not hear it from Yahya.
حدثنا حماد بن مسعدة و حدثنا عبد الله قال حدثنا القواريري قال حدثنا يحيى بن سعيد عن أشعث عن الحسن عن سعد بن هشام
أن النبي ﷺ نهى عن التبتل قال عبد الله فحدثنيه أبي فقال لم أسمعه من يحيى
No references are available.
Its isnad is sahih. Hammad bin Masada is trustworthy, and his hadith is found in the collections of all the major compilers. Likewise Qawariri, who is Ubaydullah bin Umar bin Maysara. The hadith was mentioned previously at 25115.