You need a visa for Cuba if you have a Nigerian passport
Visa options for Cuba
Visitor visa for Tourism
To visit Cuba for Tourism, travelers can obtain either a Tourist Card or Electronic visitor visa. Travelers should check if their tour operators or airline provide a Tourist Card before travel. If no Tourist Card is provided, travelers must apply for a Tourist Card at their nearest Cuban consulate or apply for an Electronic visitor visa online.