‏ Deuteronomy 5:10

10but showing steadfast love to athousands
Or  to the thousandth generation
of those who love me and keep my commandments.

Copyright information for ESV