The correct answer is: followed.
The sentence is in the past tense, so we need to use a past tense verb. The verb "follow" has several past tense forms, including "followed," "was following," and "had followed."
In this case, the best past tense form to use is "followed." This is because the sentence is about a series of events that happened one after the other. The companions followed the man's example, and then they collected a pile of stones.
The other options are not as accurate. The verb "was following" is in the past progressive tense, which is used to describe an action that was happening at a specific time in the past. In this case, the sentence is not about an action that was happening at a specific time in the past. It is about a series of events that happened one after the other.
The verb "had followed" is in the past perfect tense, which is used to describe an action that happened before another action in the past. In this case, the sentence is not about two actions that happened in the past. It is about a series of events that happened one after the other.
Therefore, the correct answer is "followed."