Prayer will strengthen you. If you have committed some arrogance in that day, after praying you will apologise to that someone. Prayers helps to develop humility.
If you are thinking of fornicating but you have just finished praying, it is going to stop you from committing that sin.
The whole issue of the prayer is a preventive measure to stop us from doing things what is wrong. Why? Because we are conscious of God.