Abd al-Rahman bin Alqamah (may Allah have mercy on him) narrated: "I asked Sayyiduna Ibn Abbas (may Allah be pleased with them both) about this statement of Allah Almighty: 'So woe to those who write the Book with their own hands.'" He said: "This verse was revealed concerning the polytheists and the People of the Book."
Imam al-Nasa'i (may Allah have mercy on him) narrated it through al-Hasan bin Ahmad bin Habib al-Kirmani, from Muhammad bin Abdullah bin Numayr, from Waki', from Sufyan, from Abd al-Rahman bin Alqam, and in it the statement is about the People of the Book.