Psalms 66:18

16 Come and hear, all ye that fear God, and I will declare what he hath done for my soul.

17 I cried unto him with my mouth, and he was extolled with my tongue.

If I regard iniquity in my heart, the Lord will not hear me:

19 But verily God hath heard me; he hath attended to the voice of my prayer.

20 Blessed be God, which hath not turned away my prayer, nor his mercy from me.

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