While the Americans were bringing lunar rocks back on Apollo spacecraft, the Soviet Union did it without people. Three automatic stations, Luna 16, Luna 20 and Luna 24, landed on the Moon, took a sample of soil and sent it to Earth in a return capsule.
How it worked
According to the LROC team's description, Luna 16 and Luna 20 were very similar in design and in the way they collected soil. A drill on the end of a robotic arm took soil from a depth of several tens of centimetres. The arm then moved the sample into the return capsule on the top of the vehicle, and the ascent stage sent it towards Earth. The descent stage stayed on the Moon.
Luna 16: the first soil brought back by an automatic station
According to NASA, Luna 16 was the first automatic station to land on the Moon and bring a sample back to Earth. It was launched on September 12, 1970. On September 20 at 05:18 UTC it landed on the basaltic plain of Mare Fecunditatis (Sea of Fertility), at 0.68° S, 56.30° E. On September 21 the ascent stage lifted off, and on September 24 the capsule returned to Earth. It held about 101 g of lunar material.
Compared with the American expeditions this is very little, but in time Luna 16 came between Apollo 12 and Apollo 14.

Luna 20: soil from the highlands
A year and a half later, on February 21, 1972 at 19:19 UTC, Luna 20 landed in rugged highlands between Mare Fecunditatis and Mare Crisium (Sea of Crises), at 3.57° N, 56.50° E. The next day the return capsule lifted off with 55 g of soil from the area of Apollonius crater, and on February 25 it was on Earth.
According to the LROC team, the Luna 20 sample contained minerals similar to those that the Apollo 16 astronauts collected two months later on the Cayley plains. The Luna 20 descent stage still stands where it landed and is clearly visible in LRO images. The team estimates that the characteristic shadow next to it most likely comes from the robotic arm.

Luna 23 and Luna 24: a second attempt in Mare Crisium
In October 1974, Luna 23 landed in Mare Crisium, but because of technical problems it could not take a sample. In August 1976 the attempt was repeated. Luna 24 was designed to drill to a depth of more than 2 m, in order to obtain a more complete section of the soil and a larger sample. It landed on August 18, 1976 at 02:00 UTC (12.75° N, 62.20° E) and delivered 170 g of soil to Earth.
From LRO images, the camera team measured that Luna 23 and Luna 24 stand about 2,400 m apart. In 2010 the absolute position of the descent stages was known to an accuracy of about 500 m.

What the Moon looked like from Earth on the landing days
We calculated the phases at the moments of landing using NSSDCA data:
| Station | Landing, UTC | Phase from Earth | Illumination |
|---|---|---|---|
| Luna 16 | September 20, 1970, 05:18 | waning | 72% |
| Luna 20 | February 21, 1972, 19:19 | waxing, near first quarter | 51% |
| Luna 24 | August 18, 1976, 02:00 | waning, near last quarter | 49% |

