Photons, being massless particles, do not experience acceleration or deceleration in the conventional sense, as they always travel at the speed of light (approximately 299,792,458 meters per second) in a vacuum. When a photon is moving towards a massive object, such as a black hole, its trajectory is affected by gravity, but its speed remains constant. Instead of slowing down, the photon's path is bent, a phenomenon known as gravitational lensing.
As a photon gets closer to a massive object, the spacetime curvature around the massive object causes the photon to follow a curved path. This effect is predicted by Einstein's general theory of relativity, which describes how mass and energy warp spacetime, affecting the motion of objects within it.
When a photon is absorbed by an atom, molecule, or a larger body like a black hole, it ceases to exist as a particle of light. The photon's energy is transferred to the absorbing material. In the case of an atom, the energy might be used to excite an electron to a higher energy level, or it might be converted into another form of energy, such as heat. There is no deceleration process for the photon; the transition from traveling at the speed of light to being absorbed is effectively instantaneous from the photon's perspective (though, as previously mentioned, the concept of a photon's perspective isn't well-defined in physics).
When considering a black hole specifically, once a photon crosses the event horizon—the boundary beyond which nothing can escape—the photon is inevitably drawn into the singularity at the center of the black hole. There is no meaningful way to describe a deceleration because the photon is no longer detectable by an outside observer once it crosses the event horizon, and it continues to travel at the speed of light until it interacts with the black hole's singularity.