The Bible says Jesus once got mad at a tree for refusing to give him figs at the wrong time of year. And rather than miraculously make it produce fruit for him out of season, Jesus chose to curse the tree so it would never make fruit for anyone again.
Then the tree immediately withered, and his disciples were amazed that it had withered so quickly. That’s how it happened according to Matthew, anyway.
But in Mark’s version of the story, Jesus curses the tree, and then goes and spends the day in Jerusalem wrecking stuff and making people want to kill him. And it’s not till the next day that the disciples pass by the tree again and Peter notices that it’s withered. When Peter points out that the tree has withered, he’s remembering Jesus having cursed it the previous day.
Possible explanation
Maybe the tree withered immediately, and most of the disciples noticed, but Peter wasn’t paying attention, and then a day later he pointed out what everybody else already knew.