“And when they drew nigh unto Jerusalem, and were come to Bethphage, unto the mount of Olives, then sent Jesus two disciples, Saying unto them, Go into the village over against you, and straightway ye shall find an ass tied, and a colt with her: loose them, and bring them unto me. And if any man say ought unto you, ye shall say, The Lord hath need of them; and straightway he will send them.” (Mat 21:1-3, KJV)
“And when they came nigh to Jerusalem, unto Bethphage and Bethany, at the mount of Olives, he sendeth forth two of his disciples, And saith unto them, Go your way into the village over against you: and as soon as ye be entered into it, ye shall find a colt tied, whereon never man sat; loose him, and bring him. And if any man say unto you, Why do ye this? say ye that the Lord hath need of him; and straightway he will send him hither.” (Mrk 11:1-3, KJV)
It is clear that Matt.21:1-3 and Mar.11:1-3 agree thus far.
“And they went their way, and found the colt tied by the door without in a place where two ways met; and they loose him. And certain of them that stood there said unto them, What do ye, loosing the colt? And they said unto them even as Jesus had commanded: and they let them go. And they brought the colt to Jesus, and cast their garments on him; and he sat upon him. And many spread their garments in the way: and others cut down branches off the trees, and strawed them in the way. And they that went before, and they that followed, cried, saying, Hosanna; Blessed is he that cometh in the name of the Lord: Blessed be the kingdom of our father David, that cometh in the name of the Lord: Hosanna in the highest. And Jesus entered into Jerusalem, and into the temple: and when he had looked round about upon all things, and now the eventide was come, he went out unto Bethany with the twelve.” (Mrk 11:4-11, KJV)
“All this was done, that it might be fulfilled which was spoken by the prophet, saying, Tell ye the daughter of Sion, Behold, thy King cometh unto thee, meek, and sitting upon an ass, and a colt the foal of an ass. And the disciples went, and did as Jesus commanded them, And brought the ass, and the colt, and put on them their clothes, and they set him thereon. And a very great multitude spread their garments in the way; others cut down branches from the trees, and strawed them in the way. And the multitudes that went before, and that followed, cried, saying, Hosanna to the Son of David: Blessed is he that cometh in the name of the Lord; Hosanna in the highest. And when he was come into Jerusalem, all the city was moved, saying, Who is this? And the multitude said, This is Jesus the prophet of Nazareth of Galilee.” (Mat 21:4-11, KJV)
Again, we can agree that Mar.11:4-11 and Matt.21:4-11 agree thus far; only that one has more detail in one area than the other. However, the sequence of event agree up to this point.
If we look closely at Matt. 21:12-17, Matthew did not tell us exactly when his narative took place. However, in verse 17, we are told that Jesus left Jerusalm to lodge at Bethany. Matthew did not tell us when the temple was cleansed. One thing is sure, after the cleansing of the temple, Jesus left Jerusalem and went back to Bethany where he was lodging.
If we look at Mark's account, he told us when the cleansing took place.
It says in verse 15, "And on the morrow, when they were come from Bethany, he was hungry" while verse syas "And they come to Jerusalem:...".
They were coming "from Bethany" on the way and "they come to Jerusalem". This follows a natural course of event. The cleansing of the temple took place after the cursing of the fig tree. The word 'And' in verse 15 seem to naturally follow the cursing of the fig tree.
Matthews says in this verse:
“Now in the morning as he returned into the city, he hungered.” (Mat 21:18, KJV)
Mark says in this verse:
“And on the morrow, when they were come from Bethany, he was hungry:” (Mrk 11:12, KJV).
Now, since Matthew did not tell us exaclty when the cleansing took place, It seems to me that Matthew places Matt.21:12-17 in parenthesis. He seemed not to be bothered about sequence of event at this time.
Therefore, Matthew's narative in verse 21:18 is similar to Mark's narative of Mar. 11:15.
After the cursing of the fig tree, they went into Jerusalem. This is natural sequence. What could they go to do in Jerusalem? The natural high probability is that they went to clean the temple. If they cleaned the temple according to Matthews' sequence of event, why would they go to Jerusalem after cursing the fig tree?
Obviously, there was a premeditated reason why they left Bethany in the morning towards Jerusalem? It was to clean the temple.
Hence, Matthews account of Matt.21:12-17 is in parenthesis. No contradiction in this regard.