The Prophet ﷺ said, "Leave me as I have left you. Those before you were destroyed only because of their excessive questioning and their disagreements with their prophets. So when I forbid you from something, avoid it, and when I command you to do something, do as much of it as you are able."
عن النبي ﷺ قال: دعوني ما تركتكم إنما هلك من كان قبلكم بسؤالهم، واختلافهم على أنبيائهم، فإذا نهيتكم عن شيء فاجتنبوه، وإذا أمرتكم بأمر فأتوا منه ما استطعتم.
Bukhari narrated it in the chapter on Holding Fast to the Book and the Sunnah (7288) from Ismail, who said, Malik narrated to me, from Abu Zinad, from Araj, from Abu Hurairah, and he related the hadith. This hadith was narrated by Malik outside of Muwatta.Muslim narrated it in the chapter on Hajj (1337) from Zuhayr bin Harb, who said, Yazid bin Harun narrated to us, who said, Rabi bin Muslim Qurashi informed us, from Muhammad bin Ziyad, from Abu Hurairah, who said, the Messenger of Allah ﷺ delivered a sermon to us and said, "O people, Allah has made Hajj obligatory upon you, so perform Hajj." A man said, "Every year, O Messenger of Allah?" He remained silent, until the man had said it 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 do it." Then he said, and he related the rest of the hadith.