What is believed to be an example of cursed objects can be found in Joshua ch. 7.
Defeat at Ai
7 But the children of Israel committed a trespass regarding the accursed things, for Achan the son of Carmi, the son of Zabdi, the son of Zerah, of the tribe of Judah, took of the accursed things; so the anger of the Lord burned against the children of Israel.
2 Now Joshua sent men from Jericho to Ai, which is beside Beth Aven, on the east side of Bethel, and spoke to them, saying, “Go up and spy out the country.” So the men went up and spied out Ai. 3 And they returned to Joshua and said to him, “Do not let all the people go up, but let about two or three thousand men go up and attack Ai. Do not weary all the people there, for the people of Ai are few.” 4 So about three thousand men went up there from the people, but they fled before the men of Ai. 5 And the men of Ai struck down about thirty-six men, for they chased them from before the gate as far as Shebarim, and struck them down on the descent; therefore the hearts of the people melted and became like water.
6 Then Joshua tore his clothes, and fell to the earth on his face before the ark of the Lord until evening, he and the elders of Israel; and they put dust on their heads. 7 And Joshua said, “Alas, Lord God, why have You brought this people over the Jordan at all—to deliver us into the hand of the Amorites, to destroy us? Oh, that we had been content, and dwelt on the other side of the Jordan! 8 O Lord, what shall I say when Israel turns its back before its enemies? 9 For the Canaanites and all the inhabitants of the land will hear it, and surround us, and cut off our name from the earth. Then what will You do for Your great name?”
The Sin of Achan
10 So the Lord said to Joshua: “Get up! Why do you lie thus on your face? 11 Israel has sinned, and they have also transgressed My covenant which I commanded them. For they have even taken some of the accursed things, and have both stolen and deceived; and they have also put it among their own stuff. 12 Therefore the children of Israel could not stand before their enemies, but turned their backs before their enemies, because they have become doomed to destruction. Neither will I be with you anymore, unless you destroy the accursed from among you. 13 Get up, sanctify the people, and say, ‘Sanctify yourselves for tomorrow, because thus says the Lord God of Israel: “There is an accursed thing in your midst, O Israel; you cannot stand before your enemies until you take away the accursed thing from among you.” 14 In the morning therefore you shall be brought according to your tribes. And it shall be that the tribe which the Lord takes shall come according to families; and the family which the Lord takes shall come by households; and the household which the Lord takes shall come man by man. 15 Then it shall be that he who is taken with the accursed thing shall be burned with fire, he and all that he has, because he has transgressed the covenant of the Lord, and because he has done a disgraceful thing in Israel.’”
16 So Joshua rose early in the morning and brought Israel by their tribes, and the tribe of Judah was taken. 17 He brought the clan of Judah, and he took the family of the Zarhites; and he brought the family of the Zarhites man by man, and Zabdi was taken. 18 Then he brought his household man by man, and Achan the son of Carmi, the son of Zabdi, the son of Zerah, of the tribe of Judah, was taken.
19 Now Joshua said to Achan, “My son, I beg you, give glory to the Lord God of Israel, and make confession to Him, and tell me now what you have done; do not hide it from me.”
20 And Achan answered Joshua and said, “Indeed I have sinned against the Lord God of Israel, and this is what I have done: 21 When I saw among the spoils a beautiful Babylonian garment, two hundred shekels of silver, and a wedge of gold weighing fifty shekels, I coveted them and took them. And there they are, hidden in the earth in the midst of my tent, with the silver under it.”
22 So Joshua sent messengers, and they ran to the tent; and there it was, hidden in his tent, with the silver under it. 23 And they took them from the midst of the tent, brought them to Joshua and to all the children of Israel, and laid them out before the Lord. 24 Then Joshua, and all Israel with him, took Achan the son of Zerah, the silver, the garment, the wedge of gold, his sons, his daughters, his oxen, his donkeys, his sheep, his tent, and all that he had, and they brought them to the Valley of Achor. 25 And Joshua said, “Why have you troubled us? The Lord will trouble you this day.” So all Israel stoned him with stones; and they burned them with fire after they had stoned them with stones.
26 Then they raised over him a great heap of stones, still there to this day. So the Lord turned from the fierceness of His anger. Therefore the name of that place has been called the Valley of Achor to this day.
You may also want to read Do Not Bring Any Detestable or Cursed Object Into Your Home
If you don’t know Jesus Christ as your Lord and Savior you can receive Him into your heart and He can deliver you from darkness and sin and have your name written in His Book of Life.
If you are sincere you can say this simple prayer to the Father (it doesn’t have to be word for word):
“God, I recognize that I have not lived my life for You up until now. I have been living for myself and that is wrong. Please forgive me of all of my sins just as I forgive others. I need You in my life; I want You in my life. I acknowledge the completed work of Your only begotten Son Jesus Christ in giving His life for me on the cross, I believe in my heart Jesus is Lord and was raised from the dead and I long to receive the forgiveness you have made freely available to me through this sacrifice. Come into my life now, Lord. Take up residence in my heart and be my king, my Lord, and my Savior. From this day forward, I will no longer be controlled by sin, or the desire to please myself, but I will follow You all the days of my life. Those days are in Your hands. I ask this in the Lord and GOD Jesus’ precious and holy name. Amen.”