Problem: According to Luke, the apostles were told to “tarry in the city of Jerusalem” until Pentecost. But Matthew tells us that they went into Galilee (Matt. 28:10, 16).
Solution: First, it is possible that the command was not given until after they had been in Galilee. In this event there would be no conflict whatsoever. Furthermore, the command to “tarry” simply meant to make Jerusalem their headquarters. It did not preclude taking short trips elsewhere. Jerusalem was the place they were to receive the Holy Spirit (Luke 24:49) and to begin their work.
“And, behold, I send the promise of my Father upon you: but tarry ye in the city of Jerusalem, until ye be endued with power from on high. (Luke 24:49) KJV”