In the Metta Sutra it says:
.
Cherish all living beings;
Radiate kindness over the entire world;
Spreading upwards to the skies,
And downward to the depths;
Outward and unbounded,
Free from hatred and ill-will.
Whether standing or walking, seated or lying down,
One should sustain this recollection.