Judges 8:24-27 (KJB) And Gideon said unto them, I would desire a request of you, that ye would give me every man the earrings of his prey. (For they had golden earrings, because they were Ishmaelites.) 25 And they answered, We will willingly give them. And they spread a garment, and did cast therein every man the earrings of his prey. 26 And the weight of the golden earrings that he requested was a thousand and seven hundred shekels of gold; beside ornaments, and collars, and purple raiment that was on the kings of Midian, and beside the chains that were about their camels’ necks. 27 And Gideon made an ephod thereof, and put it in his city, even in Ophrah: and all Israel went thither a whoring after it: which thing became a snare unto Gideon, and to his house.
Exodus 32:2 (KJB) And Aaron said unto them, Break off the golden earrings, which are in the ears of your wives, of your sons, and of your daughters, and bring them unto me
Both Gideon and Aaron chose to gather gold from the people.
Aaron fashioned a molten calf while Moses was in communication with God on the mountain.
Years later Gideon made an ephod.
Both the ephod and the calf were used by the people as a flashy display worthy of their adoration. Neither the calf or the ephod was a real blessing to the people or their leaders but was instead like a lasso about their neck. Instead of worshipping God, these people were caught up in revering this gold far above God.
In a short amount of time in both these instances, ostentatious relics meant to be mementos of wealth and prosperity were like a heavy anchor rather than a blessing or benefit. Not only that but they angered God who will not be displaced by idols in this world.
When a man opts to gather treasures in this world rather than serve and savor God, he is worshipping idols and by making this choice angers God. Aaron, Gideon, these ancient people, and people today enamored by such worldly riches separate themselves far from fellowship with God.