Abu Hurairah reported,

The Messenger of Allah ﷺ addressed us and said, "People, Allah has made the pilgrimage obligatory upon you, so perform the pilgrimage."A man asked, "Every year, Messenger of Allah?"He remained silent until the man had repeated the question three times, then the Messenger of Allah ﷺ said, "Had I said yes, it would have become obligatory, and you would not have been able to bear it."Then he said, "Leave me alone as long as I leave you alone. Those before you were destroyed only because of their excessive questioning and their disagreement with their prophets. So when I command you to do something, do as much of it as you can, and when I forbid you from something, abandon it."

Muslim 3257

Sahih

و حدثني زهير بن حرب حدثنا يزيد بن هارون أخبرنا الربيع بن مسلم القرشي عن محمد بن زياد

عن أبي هريرة قال

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

مسلم 3257صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Hajj
Chapter
Obligation of Hajj once in a lifetime
Numbering
Darussalam 3257
Muslim 3257