The previous verse has ended with the devil departing from Christ after failing to defeat him in temptation, and we now find Christ departing for Galilee. There is however a gap in time between Matthew 4:11 and 4:12.
It is something very pleasing to God when we are content to do the work which God assigns to us and do not envy those who have been given a different or what we might perceive as a greater ministry than us. As John said, ‘A man can receive nothing, except it be given him from heaven’ (John 3:27).