A Counties Manukau detective in the major crimes unit, Shannon Barnett, said he spoke with Niumagumagu while he was in custody.
He told Niumagumagu his ex-wife was discharged from hospital, but another woman had died.
"He stopped and looked at me and said: 'I don't know what happened, I didn't mean for that'," Barnett told the jury.
"He said to me: 'You know, she was off seeing someone, I was working hard doing all this overtime and she was off seeing him'," Barnett said.
Niumagumagu confirmed to officers that a knife object they found in his car was used to stab his former wife, Barnett claims.
The jury has been shown CCTV footage from the day the alleged murder took place from four cameras around Auckland.
Officer in charge of obtaining CCTV footage Wayne Mead said a car was seen badly damaged with the exhaust hanging down, dragging on the ground, on Mahunga Drive.
A man wearing a hi-vis vest was seen leaving the car and walking to the Māngere Town Centre and getting into a taxi.