Victor Hugo said this quote

The principle is twofold, do not forget. The book, as a book, belongs to the author, but as a thought, it belongs – the word is not too extreme – to the human race. All intelligences, all minds, are eligible, all own it. If one of these two rights, the right of the writer and the right of the human mind, were to be sacrificed, it would certainly be the right of the writer, because the public interest is our only concern, and that must take precedence in anything that comes before us.