The group includes twenty men and four women, the border agency said on Twitter.
According to earlier reports, 32 Afghan citizens had been camping for several days in the woods near Usnarz Górny.
On Sunday, "some of them were taken away and a few others were brought in by the Belarusian side," Poland’s border services said in a tweet.
Local residents and volunteers have been providing support to the stranded migrants for several days.
Some opposition MPs and human rights activists have called on the Polish government to take the immigrants in and let them apply for asylum in Poland.
Polish Prime Minister Mateusz Morawiecki told reporters on Wednesday that "a serious, sovereign state protects its territory," and the refugees were "being used" by Belarus' strongman President Alexander Lukashenko.
Recent weeks have seen a surge in illegal attempts to enter Poland from Belarus, with more than 2,100 people warded off or detained in August.
Poland, Lithuania and Latvia have accused Lukashenko's regime of intentionally pushing thousands of migrants over the EU's eastern border in retaliation for EU sanctions.