Why Did God Create Human Beings At All?
The reality is that God did it. He created the universe and then created the humans to test them and to worship Him. He will judge them on the day of Judgement. This is what he has told us in His book. This has been done, no matter we like it or not. This is not His test of knowledge. He created all this for us and let us progress towards our end. He knows everything doesn’t conclude that it is unnecessary, because it is not for His knowledge, but for ourselves. We have to strive to reach our destination. Of course, God did not need to do this, but He chose to do it, so He did.