The Queen of Sheba

But one who had knowledge of the Book said, “I will bring it to you in the blink of an eye.” And when Solomon saw it placed before him, he said, “This is by the grace of my Lord, to test whether I am grateful or ungrateful. Whoever is grateful, benefits himself; and whoever is ungrateful, my Lord is Self-Sufficient, Most Generous.”

27:40One with whom was knowledge of the Scripture said: I will bring it thee before thy gaze returneth unto thee. And when he saw it set in his presence, (Solomon) said: This is of the bounty of my Lord, that He may try me whether I give thanks or am ungrateful. Whosoever giveth thanks he only giveth thanks for (the good of) his own soul; and whosoever is ungrateful (is ungrateful only to his own soul's hurt). For lo! my Lord is Absolute in independence, Bountiful.