The children of Isreal were never grateful they complained and murmured at any slightest chance of difficultly, which should not be so, David took it upon himself to always praise God even when he was faced with tough situation.
Job praised God, in his suffering and never complained despite his terrible state,
He was however restored
That's why Christians must always learn to trust God and have faith in him and give thanks no matter the situation.