A treasured open space has been saved for the community after a parish council struck a deal ahead of an auction.