Matthew 28:1-10 says that when Mary Magdalene went to the tomb that she was told by an angel that the Messiah had risen and would be seen in Galilee. Matthew then says that she ran "with great joy" to tell the disciples and while on the way that she met the Messiah (this occurred before she got to the disciples).
However, John 20:1 and 2 say that when she came to the tomb and didn’t find the Messiah there, that she ran to the disciples and told them that He had been taken away and that she didn’t know where He was. In Matthew she knew where He was (or at least had been) and where He would be, but in John she didn’t.
How can this be reconciled?
It is reconciled quite easily....
Mary made two trips to the sepulcher. One very early in the morning where she sees the stone taken away and leaves and reports what has happened to the rest of the disciples *JOHN 20:1-2 and the second when she returns with the disciples and stays at the tomb after the disciples leave JOHN 20:10-18 and sees JESUS.
JOHN 20:1-18
First trip to the sepulcher v1-9 ...
[1],
The first day of the week comes Mary Magdalene early, when it was yet dark, to the sepulcher, and sees the stone taken away from the sepulcher.
[2],
Then she runs, and comes to Simon Peter, and to the other disciple, whom Jesus loved, and said to them, They have taken away the LORD out of the sepulcher, and we know not where they have laid him.
[3], Peter therefore went forth, and that other disciple, and came to the sepulcher.
[4], So they ran both together: and the other disciple did outrun Peter, and came first to the sepulcher.
[5], And he stooping down, and looking in, saw the linen clothes lying; yet went he not in.
[6], Then comes Simon Peter following him, and went into the sepulcher, and sees the linen clothes lie,
[7], And the napkin, that was about his head, not lying with the linen clothes, but wrapped together in a place by itself.
[8], Then went in also that other disciple, which came first to the sepulcher, and he saw, and believed.
[9], For as yet they knew not the scripture, that he must rise again from the dead.
Second trip to the sepulcher back with the disciples v10-18...
[10],
Then the disciples went away again to their own home.
[11],
But Mary stood without at the sepulcher weeping: and as she wept, she stooped down, and looked into the sepulcher,
[12],
And sees two angels in white sitting, the one at the head, and the other at the feet, where the body of Jesus had lain.
[13],
And they say to her, Woman, why weep you? She said to them, Because they have taken away my LORD, and I know not where they have laid him.
[14],
And when she had thus said, she turned herself back, and saw Jesus standing, and knew not that it was Jesus.
[15],
Jesus said to her, Woman, why weep you? whom seek you? She, supposing him to be the gardener, said to him, Sir, if you have borne him hence, tell me where you have laid him, and I will take him away.
[16],
Jesus said to her, Mary. She turned herself, and said to him, Rabboni; which is to say, Master.
[17],
Jesus said to her, Touch me not; for I am not yet ascended to my Father: but go to my brothers, and say to them, I ascend to my Father, and your Father; and to my God, and your God.
[18],
Mary Magdalene came and told the disciples that she had seen the LORD, and that he had spoken these things to her.
Matthews 28:1-10 version only focuses on the second trip to the sepulcher and the Angels who removed the stone from the entrance to the sepulcher.
Hope this help