When the Messenger of Allah ﷺ set out for Khaybar, he passed by a tree belonging to the idolaters called Dhat Anwat, on which they used to hang their weapons.The people said, "Messenger of Allah, appoint for us a Dhat Anwat just as they have a Dhat Anwat."The Prophet ﷺ replied, "Glory be to Allah! This is just like what the people of Musa said, 'Make for us a god just as they have gods' [Araf 7:138]. By Him in whose hand my soul rests, you will surely follow the practice of those who came before you."
أن رسول الله ﷺ لما خرج إلى خيبر مر بشجرة للمشركين يقال لها: ذات أنواط يعلقون عليها أسلحتهم، فقالوا: يا رسول الله، اجعل لنا ذات أنواط كما لهم ذات أنواط، فقال النبي ﷺ: سبحان الله هذا كما قال قوم موسى: {اجعل لنا إليها كما لهم ءالهة} [الأعراف: ١٣٨]، والذي نفسي بيده لتركبن سنة من كان قبلكم.
Narrated by Tirmidhi (2180), this being his wording, Ahmad (21897, 21900), and Nasai in Sunan al-Kubra (11121). Ibn Hibban graded it sahih (6702). All of them narrated it through various routes from Zuhri, from Sinan bin Abu Sinan Duayli, from Abu Waqid Laythi, who related it. Its chain of transmission is sahih.Tirmidhi said, "This is a hasan sahih hadith."