Under work-for-hire conditions, everything you do for a client is owned by them UNLESS you agree in writing up-front on what you can keep. I’m not a lawyer, but this is a fact of our business.
If this was work you did on your own and they offered to buy it from you, that is an entirely different situation. Then you are in control of the terms and details.
Have a wonderful day.