Quaestiones Disputatae de Veritate
Question 12, Article 13 (2)
5. The words and deeds treated in this objection do not belong to the revelation of prophecy, but to the declaration which takes place according to the disposition of those to whom it is declared. Consequently, we cannot distinguish grades of prophecy according to this. The grace of working miracles differs from prophecy, yet it can be reduced to prophecy inasmuch as the truth of the prophet is shown forth through miracles. Hence, in this respect the grace of working miracles is better than prophecy, just as scientific knowledge which gives the reason is better than scientific knowledge which gives the fact. For this reason the grace of working miracles is put before the grace of prophecy in the first Epistle to the Corinthians (12:10).
Therefore, he is the most distinguished prophet who has prophetic revelation and also works miracles. However, if he works miracles without prophetic revelation, he is not more noble in what belongs to the nature of prophecy, although, perhaps, all things considered, he is more noble. But such a one is numbered among those in the lowest grade of prophecy, just as one who has only the boldness to do something.