Summa theologiae Ia q. 89 a. 8 ad 2:
Whence it can be said about Samuel that he appeared by means of divine revelation, according to what is said in Eclesiasticus 23, that "he slept, and made known to the king the end of his life." Or that apparition was procured by demons, if the authority of Ecclesiasticus should not be accpeted, accoridng to this that it is not held to be among the canonical scriptures by the Hebrews.