Compatibility summary
You will need a travel adapter in Nigeria; plug types used there differ from Spain.
Plug comparison
Spain plug types: C F
Nigeria plug types: G
There is no common plug type between Spain (C F) and Nigeria (G). You need a travel adapter.
Voltage comparison
Spain: 230V, 50Hz
Nigeria: 230V, 50Hz
Voltage difference is within a range many devices tolerate; check your appliance label.