ref
From here + by.
hereby (adv.)
mid-13c., "near here, nearby," from here + by (prep.). Meaning "by means of this" is from early 14c. Compare Dutch hierbij, German hierbei.