Agboola Wale

My question is. If they say God is the alpha and omega(beginning and the end). Since God can see the future then why then did he reject Cain's sacrifice in the bible knowing fully well what was going to happen to Abel.???