There are various stories from Dec last year that Nigeria's Chief of Army Staff, general Faruk Yahaya was sentenced to jail or prison for contempt of court.
The chief of army staff was also jailed for contempt for failure to obey a court order issued on 12 October 2022 in a suit between a citizen and the governor of Niger state, north-central Nigeria.
Was he actually arrested/imprisoned though? I could find no follow-up stories confirming that. OTOH there are lengthy puff pieces lauding him, published later. And he was talking to Reuters in March, from his office.