Abu Waqid reported,

When the Messenger of Allah ﷺ set out for Hunayn, he passed by a tree belonging to the polytheists called Dhat Anwat, on which they used to hang their weapons.The companions said, "Messenger of Allah, designate 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.' By the One in whose hand is my soul, you will surely follow the ways of those who came before you."

Tirmidhi 2180

Sahih

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

عن أبي واقد الليثي

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

الترمذي 2180صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tribulations
Chapter
You will surely follow the ways of those who came before you
Numbering
Darussalam 2180
Tirmidhi 2180