In John 11, the story of Lazarus, Jesus knew what was happening – Lazarus was gravely ill. When Mary and Martha sent for him, he said “This sickness is not unto death, but the glory of God, that the Son of God might be glorified thereby.”
Jesus knew Lazarus would die.
He knew he would raise him from the dead to glorify God.
But we see that even knowing this, he still groaned within himself and wept. This shows what a tender, kindhearted man Jesus was. He knew, but still had compassion and love for the situation at hand.
There are many times when we ‘know’ what is happening and pass things off in a logistical sort of way. It would have been totally appropriate for him to come up to Lazarus' tomb and just perform his miracle, knowing there was no need to mourn his death.
Why mourn a death that was about to be undone?
This teaches me that we can take time and have compassion for situations and circumstances that may seem to not really need it.