From Sandra Ma:
A Sufi mystic was very poor, hungry, rejected, tired of the journey. He went to a village in the night and the village wouldn't accept him. The village belonged to the orthodox people. They wouldn't even give him shelter in the town. The night was cold and he was hungry, tired, shivering with not enough clothes. He was sitting outside the town under a tree. His disciples were sitting there with great sadness, depression, even anger.

And then he started praying and he said to God, 'You are wonderful! You always give me whatsoever I need.' This was too much.

A disciple said, 'Wait, now you are going too far, particularly on this night. These words are false. We are hungry, tired, with no clothes, and a cold night is descending. There are wild animals all around and we are rejected by the town, we are without shelter. For what are you giving your thankfulness to God? What do you mean when you say, "You always give me whatsoever I need?"'

The mystic said, 'Yes, I repeat it again: God gives me whatsoever I need. Tonight I need poverty, tonight I need being rejected, tonight I need to be hungry, in danger. Otherwise, why should He give it to me? It must be a need. It is needed and I have to be grateful. He looks after my needs so beautifully. He is really wonderful!'

This is an attitude that is unconcerned with the situation. The situation is not relevant.
Via Anand Zen.