It was narrated from Samurah bin Jundab that the Prophet forbade celibacy. Abu Abdur-Rahman said: Qatadah is more reliable and better preserves narrations than Ash'ath but the hadith of Ash'ath (here) appears to be the correct one. Allah, Most High, knows best.
عَنِ النَّبِيِّ ﷺ أَنَّهُ نَهَى عَنِ التَّبَتُّلِ قَالَ أَبُو عَبْدِ الرَّحْمَنِ قَتَادَةُ أَثْبَتُ وَأَحْفَظُ مِنْ أَشْعَثَ وَحَدِيثُ أَشْعَثَ أَشْبَهُ بِالصَّوَابِ وَاللَّهُ تَعَالَى أَعْلَمُ