Which sentence is a dependent clause?

On the way to the store, Nicholas saw a lost cat.

After the rain stopped, we went outside to play.

After the rain stopped, we went outside to play.