As two actions, you can speak to the spirit of a dead creature allowing it to answer the questions you pose. Choose a corpse you can see within 5 meters or an area where the creature died. The spell fails if the spirit’s body was made undead or if the spirit was the target of this spell within the last 10 days.
Until the spell ends, you can ask the spirit up to five questions. The spirit knows only what it knew in life, including the languages it knew. Answers are usually brief, cryptic, or repetitive, and the spirit is under no compulsion to offer a truthful answer if you are hostile to it or it recognizes you as an enemy. This spell doesn’t return the creature’s soul to its body, only its animating spirit. Thus, the spirit can’t learn new information, doesn’t comprehend anything that has happened since it died, and can’t speculate about future events.