2009 Ford Taurus X shifts hard when going uphill

transmission shifts fine but going up hill it sometimes shifts hard

I don’t know what your owners manual says, but Ford (along with some other manufacturers) do not have you change your transmission fluid often enough.
Sound like your transmission is still okay, but get it in for a fluid change ASAP.