に行ったんだ

went to

→ に
phrase Uncommon #8,683
went to The ending んだ gives the statement an explanatory or emphatic tone and is informal.
JA: 昨日、図書館に行ったんだ。
EN: I went to the library yesterday.

開くまでの間に――人形劇の小屋に行ったんだ

While I was waiting for it to open—I went to the puppet theater.

— ほんとうのピノッキオ (2019)

友達を見送るため駅に行ったんだ。

I went to the station to see my friend off.

トムは月曜日にボストンに行ったんだ。

Tom went to Boston on Monday.

トムは先月オーストラリアに行ったんだよ。

Tom went to Australia last month.

トムは二日酔いのまま仕事に行ったんだ。

Tom went to work with a hangover.

トムはバスでボストンに行ったんだ。

Tom went to Boston by bus.

どうしてパキスタンに行ったんだ?

Why did you go to Pakistan?

— バジュランギおじさんと、小さな迷子 (2015)

イリヤは君を探しに三度も下に行ったんだぞ

Ilya went downstairs three times to look for you!

— Брат 2 (2000)

去年ね、友達と海外旅行に行ったんだ。

Last year, I went abroad with a friend.

ああ、昨日ジミーのところに行ったんだ

Oh, I went to Jimmy’s place yesterday.

— ミスティック・リバー (2003)

僕ね、ロケットで宇宙に行ったんだよ。

I went to space in a rocket, you know.

トムは昨日、自転車で学校に行ったんだ。

Tom rode his bike to school yesterday.

トムを迎えに空港に行ったんだ。

I went to the airport to pick up Tom.

あいつ、英語の勉強しにアメリカに行ったんだ。

That guy went to the U.S. to study English.

トムと私はピアノリサイタルに行ったんだ。

Tom and I went to a piano recital.

トムはたぶん友達の家に行ったんだよ。

Tom probably went to his friend’s house.

トムってね、車でボストンに行ったんだよ。

Tom drove to Boston.

トムとメアリーは高級レストランに行ったんだよ。

Tom and Mary went to an upscale restaurant.

昨日ね、ディズニーランドに行ったんだ。

I went to Disneyland yesterday.

公園に遊びに行ったんだ。

I went to the park to hang out.

トムってさ、一人でボストンに行ったんだ。

Tom went to Boston by himself.

トムは仕事のためにボストンに行ったんだ。

Tom went to Boston for work.

母さんとディズニーランドに行ったんだ。

I went to Disneyland with my mom.

昨日の夜、彼女とご飯食べに行ったんだ。

I went out to eat with her last night.

海水浴に行ったんだ。

I went swimming in the ocean.