WARSAW, Poland (AP) _ Bogdan Lis, a leader of the outlawed Solidarity labor federation, was released from prison today under a government amnesty.

Lis, who was deputy chairman of Solidarity's Gdansk chapter and a founding member of the union's clandestine Temporary Coordinating Commission, is the most prominent activist released under the amnesty since it took effect July 23.

Contacted by telephone at his home in Gdansk, Lis said, ''Nobody asked me to sign anything, there was no warning talk. They (prison authorities) just quoted a passage from the law saying that if I return to the road of crime I'll be back behind bars.''

Lis, 33, was convicted by a Gdansk court in June 1985 on charges of illegal union activity. He was serving a two-year sentence.

Lis said he did not know of any other senior Solidarity figures being released.

The official PAP news agency reported 4,712 people had been freed under the amnesty, 35 of them political prisoners and the rest common criminals.

Local courts and prosecutors are to continue reviewing cases under the amnesty law through September 15.