God repents that he made Saul king 1 Samuel 15:11, this is not for lack of foreknowledge as the Bible says His repentence is not the same as ours "For He is not a man that He should repent", clearly God is lamenting for Saul's failure to fulfill what God required of him, He gave Saul great responsibility, and Saul did not live up to it, and it is a very complex relationship here between God and Saul, and it shows how intimately God will work in one of His children lives, even allowing them to fail, "I feel sorrow that I made Saul king", this life of Saul is such an amazing example of God's complex emotions, Saul really struggled with what God wanted him to do, and so did God, that He should also feel sorrow, that God is able to feel sorrow even in perfect foreknowledge is amazing, that God has perfect foreknowledge does not change that He feels emotion for what He has planned to come to pass, it's difficult for a human not having foreknowledge to understand this, but God's way is not our way. I see it that God is experiencing something new in the human experience- Saul's failure is God's sorrow, He has expressed this emotion connected to the intimate human experience that He Himself has brought about.