just Abraham pbuh did, so too all Jews/muslims are required to eradicate all idols in every time and place. The jews following in the tradition of Abraham and Moses pbuh too was following in the tradition of Abraham pbuh. Muhammed pbuh was also following in the tradition of Hebrew messenger Abraham pbuh.
The source for this commandment is from the verse, You shall utterly destroy all the places where the nations that you shall possess worshipped their gods, upon the lofty mountains and upon the hills, and under every lush tree. And you shall tear down their altars, smash their monuments, burn their [trees of worship] with fire, cut down the graven images of their gods, and destroy the names of those gods from that place (Deut. 12:1-3).
Destroy all of that land; beat down their pillars and break their statues and waste all of their high places, cleansing the land and dwelling in it.
For I have given it to you for a possession.
Old Testament Numbers 34:52, 53
"Fear ye not, neither be afraid: have not I told thee from that time, and have declared it? Ye are even My witnesses. Is there a God beside Me? Yea, there is no God; I know not any. They that make a graven image are all of them vanity; and their delectable things shall not profit; and they are their own witnesses; they see not, nor know; that they may be ashamed. Who hath formed a god, or molten a graven image that is profitable for nothing? Behold, all his fellows shall be ashamed: and the workmen, they are of men: let them all be gathered together, let them stand up; yet they shall fear, and they shall be ashamed together." (Isaiah 44:8-11 KJV)