Narrated Anas:
It was narrated from Anas that there was a group of the Companions of the Prophet, one of whom said: "I will not marry women." Another said: "I will not eat meat." Another said: "I will not sleep on a bed." Another said: "I will fast and not break my fast." News of that reached the Messenger of Allah and he praised Allah then said: "What is the matter with people who say such and such? But I pray and I sleep, I fast and I break my fast, and I marry women. Whoever turns away from my Sunnah is not of me."
أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ أَنْبَأَنَا عَفَّانُ، قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ نَفَرًا، مِنْ أَصْحَابِ النَّبِيِّ صلى الله عليه وسلم قَالَ بَعْضُهُمْ لاَ أَتَزَوَّجُ النِّسَاءَ ‏.‏ وَقَالَ بَعْضُهُمْ لاَ آكُلُ اللَّحْمَ ‏.‏ وَقَالَ بَعْضُهُمْ لاَ أَنَامُ عَلَى فِرَاشٍ ‏.‏ وَقَالَ بَعْضُهُمْ أَصُومُ فَلاَ أُفْطِرُ ‏.‏ فَبَلَغَ ذَلِكَ رَسُولَ اللَّهِ صلى الله عليه وسلم فَحَمِدَ اللَّهَ وَأَثْنَى عَلَيْهِ ثُمَّ قَالَ ‏ "‏ مَا بَالُ أَقْوَامٍ يَقُولُونَ كَذَا وَكَذَا لَكِنِّي أُصَلِّي وَأَنَامُ وَأَصُومُ وَأُفْطِرُ وَأَتَزَوَّجُ النِّسَاءَ فَمَنْ رَغِبَ عَنْ سُنَّتِي فَلَيْسَ مِنِّي ‏"‏ ‏.‏
GradeSahih (Darussalam)
Reference : Sunan an-Nasa'i 3217
In-book reference : Book 26, Hadith 22
English translation : Vol. 4, Book 26, Hadith 3219