This pledge took place under a tree and was thus known as the Pledge of the Tree. During the process of pledging, each Sahaba came before Muhammad and pledged, with his hand on top of Muhammad's.
Under a tree, Muhammad received a promise from each of the Sahaba, who placed their hands on top of his as they made their commitment.