(CNN) -

Within just a few days, Ray Fearing went from the height of ecstasy -- he had just gotten a much-needed kidney transplant -- to the depths of depression, after finding out his transplant would need to be removed.

"I had been waiting for 10 years to finally have a normal life," said Fearing, a 27-year-old from Arlington Heights, Illinois. "When it didn't work out, for a few days I just curled inward and started losing all hope. It was not an easy time."

What is notable about Fearing's case is not that he eventually got over his depression, or that he had an organ removed after transplantation -- those things happen.  What is remarkable is the simple, altruistic gesture he made just before his doctors removed his kidney that led to what scientists are describing as a medical first. 

Fearing donated his transplanted kidney to another patient, and the organ that had been failing inside Fearing's body thrived in the new recipient.

"When we removed that dysfunctioning kidney from Ray's environment, it recovered rapidly after being transplanted in a second recipient," said Dr. Lorenzo Gallon, Fearing's doctor and medical director of the kidney transplant program Northwestern Memorial Hospital. "It is the first time that has happened."

"It's amazing stuff, it really is," said Dr. Lynda Szczech, a nephrologist and president of the National Kidney Foundation. "I don't know if this is something we're going to get into with great regularity, but the fact that these providers were able to think outside the box to save such a precious resource is frankly amazing."

Fearing's kidney transplant was in June 2011, using an organ donated by his sister, Cera Fearing.  He had been struggling for years with focal segmental glomerulosclerosis, a disease that causes scar tissue to develop in the part of the kidney that filters harmful substances.

A few days after his operation, doctors took a biopsy of the new kidney and found it was quickly becoming damaged by the FSGS.  The cascade of problems following the operation was swift.

Fearing said that soon after his operation, "My abdomen was full of blood and very sore and [Dr. Gallon] told me he had to remove the kidney immediately."

Gallon said the situation, having to remove an organ to which so many hopes were now attached, haunted him.  But when he realized the organ could still be viable in another patient, he decided to broach the idea with Fearing.

"I said the kidney is yours, we can do whatever you want," said Gallon, who consulted with his hospital's ethics board before approaching Fearing. "But if we take it out, we will discard it. Are you willing to allow us to see if this kidney might work for someone else?"

Fearing did not hesitate.

"There are thousands of people waiting for organs, I couldn't see myself just discarding one," said Fearing.

The window of time in which to remove an organ that has been transplanted is narrow, said Dr. Matthew Cooper, director of the kidney transplant program at the University of Maryland Medical Center. Once a kidney is put into place, like any other transplant, it develops scar tissue around it.

"After a period of time, technically it is very difficult to remove it," said Cooper. "It is equally difficult to think about transferring it to someone else."

Cooper said he just had scenario similar to Fearing's: A mother donated a kidney to her daughter, who suffers with FSGS. Ultimately, the kidney had to be removed.

"Hearing about this case, I'm thinking 'Wow, what a cool idea,'" said Cooper.  "I don't know why we didn't think of it."

Of course, the procedure undertaken at Northwestern is not standard; an organ with even marginal functionality would usually stay in the patient.

"In this case we're not talking about a lack of perfect function," said Gallon.  "We're talking about a kidney making Ray sicker than it would have been to keep the kidney in."

But that kidney would ultimately make another patient, 67-year-old Erwin Gomez, better.