Moses and Elijah did not come back.
The Apostles simply saw a vision of them, along with Christ in his glory. They never set a foot on earth. This is clear from verses 8-9, where Christ specifically calls what they saw a “vision”:
“8 And when they had lifted up their eyes, they saw no man, save Jesus only.
9 And as they came down from the mountain, Jesus charged them, saying, Tell the vision to no man, until the Son of man be risen again from the dead.”
“John tells us he saw heaven in Revelation 4”
Again, John was given a vision of Heaven,and several other prophets/apostles were as well. They never went there, at least not while they were living.
There is also Saul and the Witch of Endor. If I remember correctly nothing is said of whether Samuel had been in Heaven. The interesting thing is to notice the absolute terror of the necromancer/witch. Being a fraud she had no expectation that Samuel would appear.
It seemed to fit in with the general discussion.