In Hesiod's Works and Days, we learn that Zeus hid fire from humankind in anger because Prometheus had deceived him:
For the gods keep hidden from men the means of life. Else you would easily do work enough in a day to supply you for a full year even without working; soon would you put away your rudder over the smoke, and the fields worked by ox and sturdy mule would run to waste. But Zeus in the anger of his heart hid it, because Prometheus the crafty deceived him; therefore he planned sorrow and mischief against men. He hid fire; but that the noble son of Iapetus stole again for men from Zeus the counsellor in a hollow fennel-stalk, so that Zeus who delights in thunder did not see it. But afterwards Zeus who gathers the clouds said to him in anger:
“Son of Iapetus, surpassing all in cunning, you are glad that you have outwitted me and stolen fire—a great plague to you yourself and to men that shall be. But I will give men as the price for fire an evil thing in which they may all be glad of heart while they embrace their own destruction.”
Hesiod. The Homeric Hymns and Homerica with an English Translation by Hugh G. Evelyn-White. Works and Days. Cambridge, MA.,Harvard University Press; London, William Heinemann Ltd. 1914.
How did Prometheus deceive Zeus?