It is narrated from Sayyiduna Abu Waqid al-Laythi (may Allah be pleased with him) that when the Messenger of Allah (peace and blessings be upon him) went out towards Hunayn, he (peace and blessings be upon him) passed by a tree called Dhat Anwat, on which the polytheists used to hang their weapons. The Companions said: O Messenger of Allah, make a Dhat Anwat for us just as they have a Dhat Anwat. The Prophet (peace and blessings be upon him) said: "Allahu Akbar! This is just as the Children of Israel said to Musa (peace be upon him): 'Make for us a god just as they have gods' [Surah al-A'raf: 138]. You will surely follow the ways of those who came before you."
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3279