what does the bible say?
The Gospels record several instances where people who knew Jesus well did not immediately recognize Him after His resurrection. Scripture shows that the reasons were mostly simple, such as grief, surprise, or pessimism.
For example, Mary Magdalene, overwhelmed with grief, thought He was the gardener until He spoke her name (John 20:15-16). In the dawn light, seven disciples fishing did not realize the man on the shore was Jesus until He provided a miraculous catch (John 21:4-7). In another instance, Jesus appeared suddenly in a locked room, and the disciples, startled with fear, thought He was a spirit until He showed His wounds and ate with them (Luke 24:37-43). In another case, Thomas was unwilling to believe the reports or his eyes until he saw Jesus’ wounds (John 20:24-29).
Besides these natural, human reasons, in one case God actively prevented people from recognizing Jesus. In that instance, two disciples walking to Emmaus were joined by Jesus along the way. God prevented them from recognizing Him until later that night at dinner (Luke 24:15-16, 27, 31).