Nate Moore, an executive producer on the 2018 Marvel movie, recounted Boseman’s message in an interview with People.
The magazine dedicated its latest edition to honouring Boseman’s memory following his death of colon cancer at the age of 43.
Moore said he and Boseman had been working together to send a young fan gifts through the Make-A-Wish Foundation, a nonprofit organisation that supports critically ill children.
“We worked together to get a young boy a voice note from [Boseman’s Black Panther character] T’Challa, as well as a package of toys – no easy feat when we weren’t allowed to leave our homes or go to the office,” Moore told the magazine.
“But Chad figured out how to make it work because he cared so intently, and in hindsight, so personally.”
According to Moore, Boseman’s final text read: “It broke me, man. But we need to do that for them. People deserve abundant life, special moments. They’ve been through hell battling disease.
“f we were able to ease their suffering and bring joy for a moment …then we made a difference in his life.”
Boseman had not publicly disclosed his colon cancer diagnosis. His family said in a statement announcing his death that he was diagnosed in the illness in 2016.
The actor’s death has prompted tributes across the industry and from fans around the world.