I received my fed & state refund, but I realized that I received an inheritance from a family friend in '22 and I didn't disclose it. I never kept it & gave it to friend.

Do I need to amend my return, if so how do I amend it? Do I owe taxes for an inheritance from a friend of the family?