のそばに立っていた

was standing beside

→ の
phrase Rare #38,339
was standing beside The の connects そばに to the noun before it; そばに means “beside” or “near.”
JA: 彼女は駅のそばに立っていた。
EN: She was standing near the station.

彼は兄のそばに立っていた。

He was standing beside his older brother.

彼女は彼のそばに立っていた。

She was standing beside him.