Chapter and verse, please
It’s obvious. God is Truth. He knows the innermost thoughts and the deepest motives of every human heart. He cannot be fooled by insincerity. He knows when someone is truly sorry. If you don’t think the intention not to sin again is necessary for forgiveness, then you take God for a fool.