What does John 7:50-53 mean?

50 Nicodemus saith unto them, (he that came to Jesus by night, being one of them,) 51 Doth our law judge any man, before it hear him, and know what he doeth? 52 They answered and said unto him, Art thou also of Galilee? Search, and look: for out of Galilee ariseth no prophet. 53 And every man went unto his own house. (John 7:50-53 KJV)

William Burkitt’s Commentary

Here observe, 1. How God stirs up Nicodemus, though he durst not openly own Christ, yet to plead for him, that he might not be condemned before heard; this was a common rule of justice, and nothing but what might have been said on behalf of the greatest malefactor; he could not well have said less; but God so ordered it, that it was enough to divert the storm from falling upon Christ at this time. One word shall be sufficient to blow over a persecution, when God will have it so.

Observe, 2. They answer Nicodemus with a taunt, a mock, and a scorn, that no prophet ever did rise out of Galilee, nor ever should. Therefore Christ arising out of Galilee, as they thought, could be no prophet.

Observe, lastly, That though they were more and more enraged, yet they dispense without concluding any thing against Christ, for that time every one went to his own home. There is no wisdom, nor understanding, nor counsel against the Lord.