Abu Hurairah reported,

The Prophet ﷺ said, "Leave me alone as long as I leave you alone. 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."

Azami 15653

Sahih

عن أبي هريرة

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

الأعظمي 15653صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Holding fast to the Quran and the Sunnah
Chapter
Images and image-makers
Section
Obligation of adhering to the Book and the Sunnah
Numbering
Jami al-Kamil 15653 (2nd edition)
Azami 15653