God in His foreknowledge knows how we will pray and works accordingly; prayer does not change His mind but fits His sovereign design.
Watch the Teaching: If God Already Knows Everything, Why Do We Pray?