Best thing? Use it for what it was intended for. Much of the active ingredient(s) will have dissipated within the container, but your lawn will still likely benefit from what remains of nutrients that are still lingering.
Do not throw unused fertilizer or weed control products into the garbage since it will inevitably end up in the landfill, which is not where these products belong.
Got some other type of fertilizer or pesticide to dispose of? Give it away to someone who might use it. Or, call an environmental agency that properly disposes of petroleum products and other chemicals that pose a potential danger to the environment.