Exodus 20:6

6 but showing faithful love to a thousand [generations] of those who love Me and keep My commands.

Exodus 20:6 In-Context

4 Do not make an idol for yourself, whether in the shape of anything in the heavens above or on the earth below or in the waters under the earth.
5 You must not bow down to them or worship them; for I, the Lord your God, am a jealous God, punishing the children for the fathers' sin, to the third and fourth [generations] of those who hate Me,
6 but showing faithful love to a thousand [generations] of those who love Me and keep My commands.
7 Do not misuse the name of the Lord your God, because the Lord will punish anyone who misuses His name.
8 Remember to dedicate the Sabbath day:
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.