An excerpt from an upcoming biography about Apple founder Steve Jobs reveals that Tim Cook offered a part of his liver to Jobs as he was dying.

Cook said in the book, entitled "Becoming Steve Jobs," that he got his blood test when Jobs was in his final years and found out that his blood type matched that of his boss, according to CNN. Doctors found that the liver transplant was not only possible, but had a high chance of success for both Cook and Jobs.

However, Jobs was not fond of the offer and refused, according to the excerpt published in Fast Company this week.

"He cut me off at the legs, almost before the words were out of my mouth," the current Apple CEO said, adding that this instance was only one of four or five in which Jobs yelled at him in the 13 years he knew his boss. "'No,' he said. 'I'll never let you do that. I'll never do that.'"

Jobs announced in 2004 that he was suffering from pancreatic cancer, BBC News reported. He was ill enough to be unable to come into the office by 2009.

Despite Jobs' refusal to take Cook's liver, he did get a liver transplant in March 2009. He died of cancer in October 2011, two months, after he resigned as Apple chief executive.

Apple has not responded to a request to confirm the incident between Jobs and Cook, NBC News reported.

"Becoming Steve Jobs" will be released on March 23.