Isaiah 63:7zakhar
I shall make mention of the lovingkindnesses of the Lord, the praises of the Lord, According to all that the Lord has granted us, And the great goodness toward the house of Israel, Which He has granted them according to His compassion And according to the abundance of His lovingkindnesses.
Mentioning the Lord's lovingkindnesses as an act of praise.
Joshua 23:7zakhar
so that you will not associate with these nations, these which remain among you, or mention the name of their gods, or make {anyone} swear {by them,} or serve them, or bow down to them.
Mentioning foreign gods tied to swearing by and serving them.