"And We guided them both," meaning: We directed them to "the straight path," meaning: the upright, clear religion.
﴿وهديناهما﴾ يُرِيد: أرشدناهما ﴿الصِّرَاط الْمُسْتَقيم﴾ يُرِيد: الدّين القويم الْوَاضِح