And thou, Solomon my son, know thou the God of thy father, and serve Him with a whole heart and with a willing mind; for the LORD searcheth all hearts, and understandeth all the imaginations of the thoughts; if thou seek Him, He will be found of thee; but if thou forsake Him, He will cast thee off for ever.

Tanakh — Divrei ha-Yamim I (1 Chronicles) 28:9

Or do you despise the riches of his goodness, forbearance, and patience, not knowing that the goodness of God leads you to repentance?

New Testament — Romans 2:4

He said, 'And who despairs of the mercy of his Lord, excepting those that are astray?'

Quran — Al-Hijr (Surah 15) 56