David has time to organize those still loyal to him. However, despite Absalom’s terrible behavior, David wants his life to be spared. David was able to keep his kingdom as God promised but at great personal cost.
God has made many promises to us, including eternity in heaven and His presence in us. God will keep those promises, no matter what. God is faithful even when we are not.