When an object is at rest, its distance−time graph is a straight line parallel to the time axis.
A straight line parallel to the x-axis in a distance-time graph indicates that with a change in time, there is no change in the position of the object. Thus, the object is at rest.