It truly depends on where you are going (i.e., dry desert, humid forest, bushwhacking), how long you will be out (hours, days, weeks, months), what the weather will be like, and your personal preference. We laid out plenty of options above that cover these variables.
For long-term use, you should be looking for a pair of pants that have durability, can repel water or dry out quickly, and has features you want (i.e., pockets, belt, leg zip offs). It’s better to consider these options initially, even if you end up dishing out more money. The best hiking pants are the ones that meet your unique needs.