Unless they are in a very poor condition, golf balls can be reused.
Consider donating to a charity shop.
You may also find companies online who accept and recycle used golf balls. However they are likely to have a minimum donation amount (for example 500 balls).
If the golf balls are unusable, dispose of them as general waste either in a household purple bin or the non-recyclable (general) waste skip at recycling centres.