Anas bin Malik reported,

Three men came to the houses of the wives of the Prophet ﷺ asking about the worship of the Prophet ﷺ. When they were informed, it was as though they considered it little, and they said, "Where do we stand in comparison to the Prophet ﷺ? Allah has forgiven him his past and future sins."One of them said, "As for me, I will pray throughout the night forever."Another said, "I will fast every day and never break my fast."The third said, "I will keep away from women and never marry."Then the Messenger of Allah ﷺ came to them and said, "Are you the ones who said such and such? By Allah, I am the most fearful of Allah among you and the most mindful of Him, yet I fast and I break my fast, I pray and I sleep, and I marry women. Whoever turns away from my Sunnah is not from me."

Bukhari 5063

Sahih

حدثنا سعيد بن أبي مريم أخبرنا محمد بن جعفر أخبرنا حميد بن أبي حميد الطويل أنه سمع

أنس بن مالك رضي الله عنه يقول

جاء ثلاثة رهط إلى بيوت أزواج النبي ﷺ يسألون عن عبادة النبي ﷺ فلما أخبروا كأنهم تقالوها فقالوا وأين نحن من النبي ﷺ قد غفر له ما تقدم من ذنبه وما تأخر قال أحدهم أما أنا فإني أصلي الليل أبدا وقال آخر أنا أصوم الدهر ولا أفطر وقال آخر أنا أعتزل النساء فلا أتزوج أبدا فجاء رسول الله ﷺ إليهم فقال أنتم الذين قلتم كذا وكذا أما والله إني لأخشاكم لله وأتقاكم له لكني أصوم وأفطر وأصلي وأرقد وأتزوج النساء فمن رغب عن سنتي فليس مني

البخاري 5063صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Marriage
Chapter
Encouragement to marry
Numbering
Darussalam 5063
Bukhari 5063