Washington (CNN) President Donald Trump on Tuesday said his daughter Ivanka Trump would be "incredible" as US ambassador to the United Nations but said he would be "accused of nepotism" if he appointed her to succeed the out-going Nikki Haley. She later said she would not be taking the position.

"I've heard a lot of names. I've heard Ivanka. How good would Ivanka be?" Trump said as he took questions from reporters on the South Lawn of the White House. "I think Ivanka would be incredible, but it doesn't mean I'd pick her. Because I'd be accused of nepotism even though I'm not sure there's anybody more competent in the world."

It is an honor to serve in the White House alongside so many great colleagues and I know that the President will nominate a formidable replacement for Ambassador Haley. That replacement will not be me. — Ivanka Trump (@IvankaTrump) October 9, 2018

Shortly after his comments, Ivanka Trump took herself out of the running for the ambassadorship, tweeting Tuesday evening that she knows "the President will nominate a formidable replacement for Ambassador Haley."

"That replacement will not be me," she said.

The President said he is considering "numerous people" including his former deputy national security adviser Dina Powell, whom he said "is under consideration."

Read More