Sahih Muslim, Book 43, Hadith 173 (Muslim 6050)

This hadith has been narrated by Abu Huraira through a different chain of transmitters (and the words are) that he reported Allah's Messenger (ﷺ) having said:

Abandon that which I have asked you to abandon, for the people before you went to their doom (for asking too many questions).