I'm going to stay over at my friend's place.

Literal

Friend-of house [at-に] stay-over-[purpose-に] go.

泊まる ('to stay overnight, lodge') is the standard verb for overnighting. 泊まりに行く ('go to stay over') uses the purpose-に with the masu-stem. A natural construction for planning a visit.