Saeed denied charges of attempted murder and wounding with intent when she went on trial at Birmingham Crown Court on Monday.
And today Miah told the jury he was attacked by Saeed at around 10pm on October 19, 2015 after going to her flat in Moseley, Birmingham.
He said the pair had argued about custody of their daughter before they ended up back on the bed.
Giving evidence, Miah added: "Suddenly in the blink of an eye, and I didn't see the knife, she stabbed me twice in the belly.
"I can only assume the knife came from either under the bed or the pocket of her dressing gown.
"My intestines were out, everything was out and she was grabbing hold of them, trying to pull them.
"She broke one of them and threw it onto the floor but I managed to put the rest of them back in my belly."
The court heard Miah tried to flee the flat but Saeed pursued him into the street where she attacked him with a wooden bat and a meat cleaver.
He was only discovered in a nearby doorway at 3am when neighbours heard his screams and called police.
Prosecutor Adam Western told the jury: "The cuts were so severe part of his small bowel ended up on the carpet.
"She caused his injuries. Her intention was nothing less than to kill him."
The court heard Saeed told police she attacked her ex-husband in self-defence after he raped her.
During cross-examination by her barrister Patrick Upward QC Mr Miah accepted he had been physically and verbally abusive towards her during their two-year marriage.
The jury also heard both he and Saeed had been at risk of being deported as illegal immigrants.
Miah came to the UK in 2010 on a student visa but was classed as illegal because he had dropped out of college and Iraqi Kurd Saeed was only granted asylum in 2012.
The court heard Miah spent four months in a detention centre in 2012 but was allowed to stay because he has a child in the UK.
The trial continues.