un ‧ wit ‧ ting ‧ ly /ʌnˈwɪtɪŋli/ BrE AmE adverb
[ Date: 1300-1400 ; Origin: wit 'to know' (11-20 centuries) , from Old English witan ]
in a way that shows you do not know or realize something SYN unknowingly :
Friedmann had unwittingly broken the law.
—unwitting adjective [only before noun] :
an unwitting accomplice