Innervation of the medial and lateral halves of the flexor digitorum profundus varies as follows:
The lateral half (associated with the index and middle fingers) is innervated by the anterior interosseous nerve (branch of the median nerve).
The medial half (the part associated with the ring and little fingers) is innervated by the ulnar nerve.