What made him come to his senses? Something must have driven him back to his rightful state of mind. I believe it was the remembrance he had (could trust in) of where he had come from. There was a hope of something better. He realized his bad choices landed him in this mess, but he didn't have to choose to continue this way.
As with my step son, as well as from the story of the prodigal son, both became aware of their actions and understood there was something better then the consequences that await them.
Reading the Word of God absolutely brings us to our senses! And...U-turns are acceptable!
God's Word is living and powerful. It is sharper than a sword that cuts both ways. It cuts straight into where the soul and spirit meet and divides them. It cuts into the joints and bones. It tells what the heart is thinking about and what it wants to do. Hebrews 4:12 NLV