Genesis 4:9-10 ASV

Clearly God knows exactly where Abel is and what has happened, but he gives Cain the chance to confess his sin.