The story is based on a book by Rabbi Steinsaltz, I Jewish scholar who theorized that it takes the soul of a dead person three days to reconcile their life before entering the world to come.