Yusuf, 22, who resides in Marna Area of Sokoto, is facing a one-count charge of the unnatural offence.
The Prosecutor, Saminu Buke, told the court that the offence was committed on March 1 along Marna area of Sokoto.
Buke said that the accused was in the carnal knowledge of the boy against the order of nature when he lured the minor into his room.
He said the offence contravened Sections 284 of the Penal Code.
The accused, however, pleaded not guilty to the charge.
The Chief Magistrate, Nuraddeen Bello, said the court lacked jurisdiction over the matter but ordered that the accused be remanded in prison custody.
Bello, however, adjourned the case until April 6 for the mention and possible transfer to a court of competent jurisdiction