Is Mercy Killing Biblical?

I really don’t want to die a lingering death in horrible pain or gasping for breath. Does the Bible advocate mercy killing? Doesn’t God hate to see his children suffer?