Payroll reversal - do I still need to claim this on my tax return?

Hi, I had a payroll reversal recently - wrong payment, and I gave the money back.

 

This was the only paycheck from that employer. It was below $150. I received a form 1099 NEC in January for it. The payroll reversal was granted in April.

 

Do I still need to attach that 1099 NEC to my tax return? Technically, it’s not my income.