In Matthew 14:1-21, Mark 6:30-44, Luke 9:10-17, John 6:1-14 we have an account of Jesus feeding 5,000 men with five loaves and two fish.

Repeated in all 4 Gospels - confirmed by 4 witnesses (cf Deuteronomy 19:15, Matthew 18:16, Hebrews 10:28)

Matthew 14:13 The news of John the Baptist's execution must have hit Jesus and the 12 hard.
For His own sanity and those of the 12 he went away with them to get some peace and quiet.

Matthew 14:14 On seeing the waiting crowd Jesus forgot about His own grief and had compassion on them.

Matthew 14:15 Later the disciples had had enough and thought they would play on Jesus's compassion to get rid of the crowd.

Matthew 14:16 They did not get the answer they wanted 'Jesus the uncompassionate' - almost rude 'why bother me, you deal with it'! (cf John 2:4)
... John 6:6 puts a different slant on it - Jesus knew what He was about to do
Is Matthew emphasising the lateness of the hour (cf John 11:21 "if only you had come earlier") - but all along Jesus knew what He was about to do.

John ends his Gospel with these words (John 21:24-25)
"This is the disciple (i.e. John, the author) who is an eyewitness of these things and wrote these things. We know that his testimony is true. There are also many other things that Jesus did. If all of them were to be written one by one, I suppose that not even the world itself will have room for the books being written!"