Deuteronomy 20:5

20:5 Moreover, the officers are to say to the troops, “Who among you has built a new house and not dedicated it? He may go home, lest he die in battle and someone else dedicate it.

Psalms 30:1

Psalm 30

A psalm – a song used at the dedication of the temple; by David.

30:1 I will praise you, O Lord, for you lifted me up,

and did not allow my enemies to gloat over me.