During his childhood his parents divorced, and while still a youth, early in June 1826, Nicolai ran away from his parents' "loveless" home, taking refuge in Stargard with a senior legal official called August Adler who treated the musical prodigy like a son and, when Nikolai was seventeen, sent him to Berlin to study with Carl Friedrich Zelter.