What is the meaning of Matthew 2:4?

Mt ch 2Mt 2:1Mt 2:2Mt 2:3Mt 2:4Mt 2:5Mt 2:6Mt 2:7
Mt 2:8Mt 2:9Mt 2:10Mt 2:11Mt 2:12Mt 2:13Mt 2:14Mt 2:15
Mt 2:16Mt 2:17Mt 2:18Mt 2:19Mt 2:20Mt 2:21Mt 2:22Mt 2:23

References

And when he had gathered all the chief priests and scribes of the people together, he demanded of them where Christ should be born. (Matthew 2:4 KJV)

And gathering together all the chief priests and scribes of the people, he inquired of them where the Christ should be born. (Matthew 2:4 ASV)

and, assembling all the chief priests and scribes of the people, he inquired of them where the Christ should be born. (Matthew 2:4 DBY)

Gathering together all the chief priests and scribes of the people, he asked them where the Christ would be born. (Matthew 2:4 WEB)

and having gathered all the chief priests and scribes of the people, he was inquiring from them where the Christ is born. (Matthew 2:4 YLT)

Interlinear

Mt 2:4 And /kai/ when he had gathered /sunago/ all /pas/ the chief priests /archiereus/ and /kai/ scribes /grammateus/ of the people /laos/ together, /sunago/ he demanded /punthanomai/ of /para/ them /autos/ where /pou/ Christ /Christos/ should be born. /gennao/

Albert Barnes’ Commentary

Verse 4.  The Chief Priests. By the chief priests here are meant not only the high priest and his deputy, but also the heads or chiefs of the twenty-four classes into which David had divided the sacerdotal families, 1Ch 23:6; 24:1; 2Ch 8:14; 36:14; Ezr 8:24.  

Scribes. By the scribes, in the New Testament, are meant learned men, men skilled in the law, and members of the great council. They were probably the learned men, or the lawyers of the nation. They kept the records of the court of justice, the registers of the synagogues, wrote their articles of contract and sale, their bills of divorce, &c. They were also called lawyers, Mt 22:35, and doctors of the law, Lu 5:17. They were called scribes from the fact of their writing the public records. They were not, however, a religious sect, but might be either Pharisees or Sadducees. By the chief priests and scribes here mentioned, is denoted the sanhedrim, or great council of the nation. This was composed of seventy-two men, who had the charge of the civil and religious affairs of the Jews. On this occasion, Herod, in alarm, called them together, professedly to make inquiry respecting the birth of the Messiah.

Demanded of them. Inquired, or asked of them. As they were the learned men of the nation, and as it was their business to study and explain the Old Testament, they were presumed to know what the prophecies had declared on that point. His object was to ascertain from prophecy where he was born, that he might strike an effectual blow. He seems not to have had any doubt about the time when he should be born. He was satisfied that the time had come.  

{f} “gathered” Ps 2:2.