The News Agency of Nigeria identified them as Damilare Adeniran, 27, and his friend simply identified as Victor.
They jumped simultaneously as Magistrate G. Oladele was about to give the next adjourned date.
The police had charged the duo and three others with conspiracy and armed robbery.
According to the prosecutor, Inspector Femi Omilana, the five suspects had been remanded by the court since 2023 pending the advice of the Oyo State Director of Public Prosecution in the case.
Omilana alleged that the five suspects robbed some people while armed with guns and other dangerous weapons.
He said: “They were remanded since then at the Agodi correctional facility, Ibadan, but were today brought to the court for mention of the case and for the court to know the position of the matter.
“The magistrate was about to announce an adjournment date when we heard a sound.
“One of the suspects jumped from the court’s back window while the other jumped from the front rail.
“The duo landed on the floor.
“One broke his head and another his spinal cord.
“They were both taken to the jailors half dead because they could hardly walk.”
The Magistrate adjourned the case until July 8 for mention.