RichThesaurus
detained at Her Majesty's pleasure
vs
in prison
detained at Her Majesty's pleasure
in prison
prep
imprisoned; in a prison as a convict
How often have the words
detained at Her Majesty's pleasure
and
in prison
occurred in a corpus of books?
(source:
Google Ngram Viewer
)