Satya Nadella, who became CEO in February, was asked how women should get ahead in the tech world at a three-day conference in Phoenix, Arizona, intended to celebrate women in computing.
               
"It's not really about asking for the raise, but knowing and having faith that the system will actually give you the right raises as you go along," Nadella said, according to a recording on the website of the event, the Grace Hopper Celebration of Women in Computing.
               
"Because that's good karma," Nadella continued. "It'll come back because somebody's going to know that's the kind of person that I want to trust."
               
Maria Klawe, president of Harvey Mudd College and a member of Microsoft's board, immediately challenged Nadella, saying his viewpoint was "one of the very few things that I disagree with you on," eliciting a few cheers from the audience.
               
The two went on to hug on stage, and the audience warmly applauded, but Twitter rounded on Nadella and his comments became fodder for jokes.
               
"I'll wait for Karma to lower my #xboxlive price too," tweeted Chuck Granade.

Nadella later tried to patch up the damage.
               
"Was inarticulate re how women should ask for raise," he tweeted several hours after his remarks. "Our industry must close gender pay gap so a raise is not needed because of a bias."
               
Nadella also admitted his error in a memo to Microsoft employees which was posted on the company's website.               

"I answered that question completely wrong," said the memo. "I believe men and women should get equal pay for equal work. And when it comes to career advice on getting a raise when you think it's deserved, Maria's advice was the right advice. If you think you deserve a raise, you should just ask."
               
According to recent research by the American Association of University Women, last year women were paid 78 percent of what equally qualified men received, although there is some data to suggest the pay gap is less in the tech sector.
               
Only 29 percent of Microsoft's more than 100,000 employees are female, according to data recently released by the company.