By analogy, the biblical accounts of “apparitions” or of visions or dreams of deceased persons are of the same essential nature as a Marian apparition. Angels (i.e. also creatures like men) could also be included in such a survey, but the stories of angels are relatively well known, and for the sake of analogy and brevity I do not I selected only passages with men or the appearance of men. .
Several of these passages involve prediction of the future, in a manner similar to that of the apparitions at Fatima in 1917. And several actual historical figures are named as appearing after death (Samuel, Onias, Jeremiah, Moses, and Elijah). All passages are in RSV (italics for added emphasis).
1 Samuel 28: 12-14, 19 When the woman saw Samuel, She cried out in a loud voice; and the woman said to Saul, “Why have you deceived me? You are Saul.  The king said to him: “Do not be afraid; What do you see? “And the woman said to Saul,” I see a god coming up out of the earth. ”  He said to her, “What is his appearance? And she said, “An old man is coming; and he is wrapped in a robe. And Saul knew it was Samuel, and he bowed himself down with his face to the earth, and bowed himself. . . .  . . . [Samuel speaking] “The Lord will also deliver Israel with you into the hand of the Philistines; and tomorrow you and your sons will be with me; the Lord will also deliver the army of Israel into the hand of the Philistines.
Ezekiel 40: 3-4 When he brought me there behold, there was a man whose appearance was like bronze, with a line of linen and a measuring reed in hand; and he was standing in the doorway.  And the man said to me, “Son of man, look with your eyes, and hear with your ears, and think of all that I am going to show you, for you have been brought here to show you; declare everything you see to the house of Israel ”.
Daniel 8: 15-17, 19 When I, Daniel, had the vision, I tried to understand it; and here, there appeared before me one having the appearance of a man.  And I heard a man’s voice from between the banks of the U’lai, and she called, “Gabriel, make this man understand the vision.”  So he approached where I was standing; and when it came i got scared and fell on my face. But he said to me: “Understand, O son of man, that the vision is for the end time. “…  He said, “Here, I will let you know which will be at the last extremity of indignation; for it relates to the appointed time of the end.
Daniel 10: 4-7 On the twenty-fourth day of the first month, as I stood by the great river, that is to say the Tigris,  I looked up and looked, and behold, a man dressed in linen, whose loins were girded with gold from Uphaz.  Her body was like beryl, her face like the appearance of lightning, her eyes like flaming torches, her arms and legs like the glow of burnished bronze., and the sound of his words like the sound of a multitude.  And I, Daniel, saw the vision, for the men that was with me did not see the vision, but a great tremor fell upon them, and they ran away to hide. (cf. 10: 8-21, with back and forth and prophetic reference to future events: 10:14)
Sirach 46: 19-20 Before the hour of his eternal sleep, Samuel called men to testify before the Lord and his anointed: “I took no property from anyone, not even a pair of shoes. And no one accused him.  Even after falling asleep, he prophesied and revealed to the king his death, and lifted his voice out of the earth in prophecy, to erase the wickedness of the people.
2 Maccabees 5: 2, 4 And it came to pass that all over the city, for about forty days, horsemen clad in gold appeared charging through the air, in companies fully armed with lances and naked swords -. . .  This is why all men prayed that the appearance could turn out to be a good omen.
2 Maccabees 10:29 When the battle became fierce, five resplendent men on horses appeared to the enemy of heaven with golden bridles, and they led the Jews.
2 Maccabees 15: 11-14 . . . a dream, some kind of vision, that was trustworthy.  What he saw was this: Onias, who had been high priest, a noble and good man, Rolling modestly and smoothly ,. . . prayed with outstretched hands for the whole body of the Jews.  Then likewise a man appeared, distinguished by his gray hair and dignity, and of marvelous majesty and authority.  And Onias spoke, saying: “He is a man who loves the brothers and prays a lot for the people and the holy city, Jeremiah, the prophet of God.. “(Jeremiah speaks to Judas in 15: 15-16)
Matthew 17: 3-4 And behold, Moses and Elijah appeared to them, speaking with him.  And Peter said to Jesus, “Lord, it is good that we are here; if you want, I will make three stands here, one for you and one for Moses and one for Elijah. “(cf. Mk 9,4-5)
Matthew 27: 52-53 the tombs also were opened, and several bodies of deceased saints resuscitated,  and coming out of the tombs after his resurrection, they entered the holy city and appeared to many.
Acts 16: 9 And a vision appeared to Paul the night: a Macedonian implored him and saying, “Come to Macedonia and help us. “