Spoiler warning: Plot or ending details follow.

"The horned statue in Hateno Village took one of your containers! The only thing to do is talk to him and try to convince him to give it back."
— Adventure Log description

The Statue's Bargain is a side quest in The Legend of Zelda: Breath of the Wild. It is unlocked at Hateno Village when Link prays the Horned Statue and loses either a Heart Container or a Stamina Vessel. Link must convince it to return his item and can then choose to have the statue return his Heart Container / Stamina Vessel or choose to exchange it for the other. Either option completes the quest and opens up the Horned Statue's Heart Container and Stamina Vessel exchange service. Should Link ever change his mind how he has invested Spirit Orbs this feature allows him to reallocate them as he sees fit.

Spoiler warning: Spoilers end here.