how does God decide which soul to take back?

How is our fate decided?
When do they choose a day to be our last?
At what moment does heaven look at someone and whisper, “It is time.”