I'm working on an NEH grant project, annotating the first complete translation of Book IV of Thomas's Commentary on the Sentences. I recently came across an odd passage and wanted to know if readers might have any clue where Thomas picked up his knowledge of this extra-biblical aspect of King Solomon:
"Sed contra, exorcismi Salomonis habebant aliquem effectum ad pellendos daemones. Ergo multo fortius exorcismi ecclesiae." (In IV Sent., d. 6, q. 2, a. 3, qa. 2, sc 2)
There is one other reference, as far as I can tell: De Potentia, q. 6, a. 10, obj. 3:
"It is related of Solomon that he performed certain exercises and thereby compelled the demons to quit bodies that were obsessed by them. Therefore demons can be compelled by adjuration."
To which he replies:
"If Solomon performed these exorcisms when he was in a state of grace, they could derive the power to compel the demons from the power of God. But if it was after he had turned to the worship of idols, so that we have to understand that he performed them by magic arts, these exorcisms had no power to compel the demons, except in the manner explained above."
There is a pseudepigraphical work (usually dated between the 1st to 5th cent. AD) called The Testament of Solomon which refers to the king commanding demons to help him build the Temple, but it's hard for me to imagine Thomas knowing this work, and his comments don't seem to fit with it.