Jamie Foxx believes "God was in the guitar" that his teenage daughter played at his hospital bedside and helped bring his spiralling vitals back down.