The Prophet ﷺ forbade celibacy.
حدثنا أبو هشام الرفاعي وزيد بن أخزم الطائي وإسحق بن إبراهيم البصري قالوا حدثنا معاذ بن هشام عن أبيه عن قتادة عن الحسن
أن النبي ﷺ نهى عن التبتل
No references are available.
Sahih. Ibn Majah also reported it in the Book of Marriage, chapter on the prohibition of celibacy, hadith no. 1849, from Zayd bin Akhzam with the same chain, and it has supporting narrations in Bukhari, hadith no. 5073, and Muslim, hadith no. 1402, and others.On this subject there are also narrations from Saad [to come at 1083], Anas bin Malik [Bukhari, hadith no. 5063, Muslim, hadith no. 1401, and Ahmad 3/158, 245], Ayesha [Nasai, hadith no. 3215], and Ibn Abbas [Abu Dawud, hadith no. 1729, and Ahmad 1/312].The hadith of Ashath bin Abdul-Malik was reported by Nasai, 6/59, hadith no. 3215.