The sands of time

The sands of time is an idiom meaning that time runs out either through something reaching an end or through a person's death. It comes from the sand used in hourglasses, an ancient way of measuring time.