The ruling on selling endowed books when it is no longer possible to benefit from them
If the pages of an endowed book are torn or worn out, so that it becomes impossible to benefit from it and to read it, then there is no harm in selling it and buying a new book in its place.
If the book remains and it is still possible to benefit from it, and someone exchanges it, intending the reward for the first person alone, and buys a better book than it and gives it, then there is still no objection, because he has replaced the endowment with something better. But if he wants to nullify the first endowment and reserve the reward for himself, then this is impermissible, because it is a wrong against the other person.