A man who is skillful in his work, you shall see:
before kings, he will serve;
he will not serve before the commoners. (Proverbs 22.29)
And you will be brought before both governors and kings because of me, for a witness to them and to the Gentiles. (Matthew 10.18)
I can turn to Mark 13.9 as the literary precursor — as if often the case with Matthew who uses Mark as his primary Gospel source. But, I think the whole of Matthew 10 is pulling from something more here — or at least using something like Proverbs to expand Mark 13.9. I think Matthew 10 is looking at Proverbs 22 and giving it the mimetic wink.
Matthew only has this idea about standing before kings and rules/governors once, here at 10.18 — just like Mark does. Once — at Mark 13.9.
Luke, on the other hand, has it twice.
Luke 12.11 mirrors Matthew 10.18, in placement of context. But, Luke 21.12 mirrors Mark 13.9 — a mirror absent in Matthew’s version of the Olivet Discourse in Matthew 24.
I think if you compare Proverbs 22 and Matthew 10, you’ll note a general overlay of concepts and points. I’d encourage you to do so.
I’m busy writing a review, but this stuff interests me too much to not document this.