Just as God is tempted by man so is man tempted by God, man, and demons. But when man is tempted the result is not always expected from his power.
 Thomas Aquinas, Summa Theologica (1274). copy citation

add
Author Thomas Aquinas
Source Summa Theologica
Topic power God
Date 1274
Language English
Reference
Note Translated by Fathers of the English Dominican Province
Weblink http://www.gutenberg.org/cache/epub/18755/pg18755-images.html

Context

“Whether the Temptation of God Consists in Certain Deeds, Wherein the Expected Result Is Ascribed to the Power of God Alone? Objection 1: It would seem that the temptation of God does not consist in certain deeds wherein the result is expected from the power of God alone. Just as God is tempted by man so is man tempted by God, man, and demons. But when man is tempted the result is not always expected from his power. Therefore neither is God tempted when the result is expected from His power alone. Obj. 2: Further, all those who work miracles by invoking the divine name look for an effect due to God's power alone.” source