Ashton Kutcher has testified at a Los Angeles murder trial that he went to pick up a woman to go out for drinks on a night in 2001 and left when she didn’t answer her door, only to learn the next day she had been killed.

The 41-year-old actor said from the witness stand Wednesday that he looked into the window at the Hollywood home of 22-year-old Ashley Ellerin and saw what he believed were wine stains before leaving, thinking the fashion design student had already gone out for the night.

Kutcher said he told detectives the next day he knew his fingerprints were on the door and he was “freaking out.”

Defense Attorney Daniel Nardoni, left, questions Ashton Kutcher during his tesitimony in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin.  (Genaro Molina/Los Angeles Times via AP, Pool)
Defense Attorney Daniel Nardoni, left, questions Ashton Kutcher during his tesitimony in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Genaro Molina/Los Angeles Times via AP, Pool)

The testimony came in the trial of 43-year-old Michael Gargiulo, who is charged with killing Ellerin and another woman.

Michael Gargiulo, left, listens to the testimony of Austin Kutcher during Gargiulo's murder trial at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin.  (Genaro Molina/Los Angeles Times via AP, Pool)
Michael Gargiulo, left, listens to the testimony of Austin Kutcher during Gargiulo’s murder trial at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Genaro Molina/Los Angeles Times via AP, Pool)
Ashton Kutcher testifies in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Ashton Kutcher testifies in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Ashton Kutcher testifies during the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Ashton Kutcher testifies during the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Ashton Kutcher testifies during the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Ashton Kutcher testifies during the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Defense Attorney Daniel Nardoni, left, questions Ashton Kutcher during his tesitimony in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Defense Attorney Daniel Nardoni, left, questions Ashton Kutcher during his tesitimony in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Defense Attorney Daniel Nardoni, left, questions Ashton Kutcher during his tesitimony in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Defense Attorney Daniel Nardoni, left, questions Ashton Kutcher during his tesitimony in the murder trial of Michael Gargiulo at Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Frederick M. Brown/Pool via AP)
Ashton Kutcher testifies in the murder trial of Michael Gargiulo in Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher's former girlfriend, 22-year-old Ashley Ellerin.  (Genaro Molina/Los Angeles Times via AP, Pool)
Ashton Kutcher testifies in the murder trial of Michael Gargiulo in Los Angeles Superior Court, Wednesday, May 29, 2019. Gargiulo, 43, has pleaded not guilty to two counts of murder and an attempted-murder charge stemming from attacks in the Los Angeles area between 2001 and 2008, including the death of Kutcher’s former girlfriend, 22-year-old Ashley Ellerin. (Genaro Molina/Los Angeles Times via AP, Pool)