A guy wrote a book on Che said that Castro sent him to Bolivia to get killed.
The Cuban CIA agent who ran the operation that captured Guevara received the information on Guevara’s whereabouts from the Bolivian Communist Party, who received the information from Havana. This is in Humberto Fontova’s excellent book on Che Guevara.