Theory must be accompanied by practice.

Literal

Theory [to-には] practice [subject-が] must-accompany.

伴う (ともなう, to accompany) takes に for what is being accompanied. ~なければならない marks the obligation. A statement about the necessary relationship between theory and action.