The Bible verse you’re thinking of is:

“Blessed are the meek : for they shall inherit the earth.”
— Matthew 5:5 (KJV)

In other words, according to this verse, it is the meek —often understood as the humble, gentle, and God‑dependent—who “shall inherit the earth.”

A closely related source in the Hebrew Bible says:

“But the meek shall inherit the earth, and shall delight themselves in the abundance of peace.”
— Psalm 37:11

TL;DR: Per the Bible (especially Matthew 5:5), the ones who “shall inherit the earth” are the meek.