Job 38 to 41 showed that god is not interested in logic or reality.
All he is interested is just his vanity of being worshipped. If he show anything in these chapters, is that he like to intimidate people into worship him...and even then he will sooner bite you than pat you on the back.
God, if he is anything like God in Job, is not someone whom I can admire or respect, let alone worship.
Lucifer was the most powerful, beautiful, talented and wise creature God had made -but he did not have experience and had not yet made himself perfect inwardly. As we are individuals, we must choose to do right, and be able to do so under any circumstance.
Where he did well, it was acknowledged and praised.
He eventually decided to be destructive and all sorts of mean, nasty, ugly things.
Should he get a pat on the back for that?
I think that when Job and all the loved ones he lost are together in the future -which will have been created by those things described in the book of Job and others -they will not feel as you do.
You are considering temporary states which will change.
What God was and is considering are perfected spirits who will never depart from righteousness -and a future state which will only change for the good forevermore.
Whether or not Job "deserved" all of that is not actually the point. God gave him evils which he may not have "deserved" -but also that which would give him more good than he ever could deserve. It just happened to be extremely unpleasant temporarily -but even that will eventually no longer enter his mind.
When God asked if Satan had considered Job, he already knew the end of the matter. God was creating a situation for both Satan and Job to experience and consider. Satan will consider those things -and the future Job will inherit.
Job will consider those things -and what will become of Satan -and inherit that future.
The immediate situation was horrible -but God not only gave Job more than he had before in earthly terms, but will return to him his lost family members later.
However, later they will be returned when the overall situation is indescribably better.
It may seem that God was being egotistical, but God simply told the truth about himself. It is important we understand, because that allows for correct perception -and therefore correct action.
It may seem that God was belittling Job, but he was actually making job a perfect god from an imperfect human. Job was perfect in all his ways except one -and that one was thereby removed. Job will be worthy of being given an incredibly powerful, mobile and invulnerable body -and God will know that he can be trusted anywhere in the universe without having to micromanage.
God was not saying "I'm awesome" for no reason. He was saying "I am awesome, and I am going to make you awesome."
Job 40:6Then answered the LORD unto Job out of the whirlwind, and said,
7Gird up thy loins now like a man: I will demand of thee, and declare thou unto me.
8Wilt thou also disannul my judgment? wilt thou condemn me, that thou mayest be righteous?
God was essentially telling Job to put on his big boy pants.
God could indeed have left Job the be a very content and happy flock keeper -but he brought him into a situation which involved powers far greater than himself -because God purposed to make him far greater than himself.
He pointed out that condemning God would not make Job righteous -but that God was making Job righteous by this experience.
Job 40:10Deck thyself now
with majesty and excellency; and array thyself with glory and beauty.
11Cast abroad the rage of thy wrath: and behold every one
that is proud, and abase him.
12Look on every one
that is proud,
and bring him low; and tread down the wicked in their place.
13Hide them in the dust together;
and bind their faces in secret.
14Then will I also confess unto thee that thine own right hand can save thee.
In the above, God describes what he does -and why he does it -to save them from imperfection -to make them perfect -because they themselves are not able. An individual must ultimately willingly make a correct decision based on logic, but also the experience which both proves and personalizes that logic. Rather than allow us all to hopefully eventually "get it", however, God fast-tracks the process -manages and directs our overall and personal experiences -brining us to the point of decision.
Isaiah 65:17For, behold, I create new heavens and a new earth: and
the former shall not be remembered, nor come into mind.
18But be ye glad and rejoice for ever in that which I create: for, behold, I create Jerusalem a rejoicing, and her people a joy.
Even the best of human fathers are often hated by their children when they give them what they need rather than what they want -but later they love them more for it. God being God, it is his place to do that which human fathers should not -but he will still be loved all the more for it.
It is understandable that you feel as you do now -but even you will not feel that way later.
None of us -all born innocent -deserve this experience -and neither will we deserve by our own works that which it makes possible later.
Perhaps it could be said that because we endure this experience, we deserve a good experience which will nullify this one and replace it -but this experience is what must take place to cause the other -and that is exactly what has already been planned.
Isaiah 46:10Declaring the end from the beginning, and from ancient times
the things that are not
yetdone, saying, My counsel shall stand, and I will do all my pleasure: