It's a violation of the first sale doctrine. They can ask, but cannot legally prevent the resale.
https://en.m.wikipedia.org/wiki/First-sale_doctrine
The first-sale doctrine creates a basic exception to the copyright holder's distribution right. Once the work is lawfully sold or even transferred gratuitously, the copyright owner's interest in the material object in which the copyrighted work is embodied is exhausted. The owner of the material object can then dispose of it as they see fit. Thus, one who buys a copy of a book is entitled to resell it, rent it, give it away, or destroy it.