This is not at all inconsistent with what we read, that He went up into a mountain apart to pray: (Mat. 14:23) the object of escape being quite compatible with that of prayer. Indeed our Lord teaches us here, that whenever escape is necessary, there is great necessity for prayer.
Reproduced in full. Translation: Oxford 1841 (Newman), public domain (Public domain).
Also cites: de Con. Ev. ii. c. xlvii
