The decree provided for in this chapter may direct the possession of the real estate therein described to be surrendered to the person or persons entitled thereto, at the time when, by the terms of the contract, possession is to be surrendered.
Okla. Stat. tit. 58, § 511