Psalms 66:18

16 Come and listen, all you who fear God, and I will declare what He has done for me.

17 I cried out to Him with my mouth and praised Him with my tongue.

If I had cherished iniquity in my heart, the Lord would not have listened.

19 But God has surely heard; He has attended to the sound of my prayer.

20 Blessed be God, who has not rejected my prayer or withheld from me His loving devotion!

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
If I had cherished iniquity in my heart, the Lord would not have listened.
KJV
If I regard iniquity in my heart, the Lord will not hear me:
WEB
If I cherished sin in my heart, the Lord wouldn’t have listened.
ASV
If I regard iniquity in my heart, The Lord will not hear:
DARBY
Had I regarded iniquity in my heart, the Lord would not hear.
BLB
If I had seen iniquity in my heart, the Lord would not have listened.
ÅB
Hadde jeg urett for øye i mitt hjerte, så ville Herren ikke høre.
OTB
Hvis jeg har urett i mitt hjerte,
Vil Herren ikke høre;
B1930
Hadde jeg urett for øie i mitt hjerte, så vilde Herren ikke høre.

Study notes (Tyndale)

Original text and word study

Cross references