Something similar to this happened in a recent Trek novel, where a character was in the wormhole and they had a rather lengthy experience with the Prophets, and the first part of it was a replay (or rather, the character watching as it originally took place) Sisko's first meeting with Them.