And Joshua said to all the people, “Look, this stone will be a witness against us, for it has heard all the words of Yahweh that he spoke with us. It will be as a witness against you, so that you do not deny your God.”” (Joshua 24:27, LEB)

Joshua sets up a stone as a witness as he and all of Israel renew the covenant to the Lord, in a covenant renewal ceremony.

The people swore that they would be faithful to the Lord their God at the ceremony and the did remain faithful

Israel served Yahweh all the days of Joshua, and all the days of the elders who lived long after Joshua, and who had known all the work that Yahweh did for Israel.” (Joshua 24:31, LEB)

The stone stood longer than those who had seen the great work of the Lord when they entered the Promised Land. The stone was a witness as later generations fell swiftly away from covenant faithfulness and pursued false idols.  If only that stone could have spoken perhaps it would have pleaded with Israel not to fall away from the Lord because the stone knew what the Lord could do and what the Lord had done.

We do not set up stones of remembrance in covenant renewal ceremonies in our own times [though who knows, perhaps we should].  However, we have something far better: God’s faithful promises,

His divine power has granted to us all things that pertain to life and godliness, through the knowledge of him who called us to his own glory and excellence, by which he has granted to us his precious and very great promises, so that through them you may become partakers of the divine nature, having escaped from the corruption that is in the world because of sinful desire.” (2 Peter 1:3–4, ESV)

We have God’s precious and very great promises which lead us away from sinful desire and to faithfulness to God through Christ.