Deuteronomy 7:9

And you shall know that the Lord your God himself is a strong and faithful God, preserving his covenant and his mercy for those who love him and those who keep his precepts for a thousand generations

Other versions

King James Version

Know therefore that the LORD thy God, he is God, the faithful God, which keepeth covenant and mercy with them that love him and keep his commandments to a thousand generations;

English Standard Version

Know therefore that the LORD your God is God, the faithful God who keeps covenant and steadfast love with those who love him and keep his commandments, to a thousand generations,

New International Version

Know therefore that the LORD your God is God; he is the faithful God, keeping his covenant of love to a thousand generations of those who love him and keep his commands.