(as it is written in the law of the Lord, "Every male who opens the womb shall be called holy to the Lord"),

 If that was the case in Egypt, it may well be that in Judaea, where the old tribal ancestries still held good, men had to go to the headquarters of their tribe. Here is an instance where further knowledge has shown the accuracy of the New Testament. 