The phrase and situation that I think that you are speaking about is called "hearsay", which is an objection to testimony at trial or in other legal proceedings to a statement that is made by someone other than the witness that is testifying.  There are many exceptions to the hearsay rule and this situation may indeed come under one of the exceptions.: excited utterance, etc.  Objections will always be made by the defense attorney during the trial. One would really have to know more of the circumstances surrounding the statement made to the friend.  If you want to get advice on the matter then I would speak with an attorney in your area.  Good luck to you.