It looks like a green passion fruit to me (maracujá in Portuguese and I believe maracuya in Spanish). If you open(ed) it you should be able to confirm with fairly high confidence, although I've never seen the inside of a green one.
See this photo for comparison with yours: https://www.shutterstock.com/image-photo/green-passion-fruit-parcha-o-verde-1540775528 And one of the inside of a ripe one: https://www.shutterstock.com/image-photo/passion-fruit-cut-half-isolated-on-2588726317
