Yours is not an uncommon dream, nor was it a psychic vision. Dreams are symbolic expressions of our feelings about our life at the time we had the dream. Death and coffins are common symbols. Here are links to their definitions on this site:
death:
dreamdoctor.com/dream-dictionary/definitions/death.html
coffin:
dreamdoctor.com/dream-dictionary/definitions/coffin.html
You didn't provide any background about what was going on in your life at the time of the dream, so it's impossible to guess what changes in our life might have triggered it. But, based on the symbols, it should be pretty obvious to you what it is. The silver lining of these dreams is that you are aware of the fact that something in your life has changed (or "died") and you are witnessing the transition. Just because you don't know what the future holds doesn't mean it will be bad. You still have the power to make the transition ("resurrection") a powerful and rewarding experience.
If you wouldn't mind, please share what was going on in your life with the community.
Thanks and good luck.