に座っていた

was sitting

→ に
phrase Common #3,087
was sitting The に marks the place where someone was sitting. 座っていた is the past form of 座っている, describing a continuing state or action in the past.
JA: 彼は窓のそばに座っていた。
EN: He was sitting by the window.

彼は目を閉じてに座っていた

He was sitting at the desk with his eyes closed.

ネコイスに座っていた

The cat was sitting on the chair.

トムメアリー会議室隣同士に座っていた

Tom and Mary were sitting next to each other in the conference room.

に座っていたので足が痛い

My legs hurt from sitting on the tatami.

メアリーに座っていた

Mary was sitting on a rock.