Sunan an-Nasa'i, Book 45, Hadith 69 (Nasa'i 4784)

It was narrated the Abu Sa'eed Al-Khudri said:

"While the Messenger of Allah was distributing something, a man came and leaned over him, and the Messenger of Allah hit him with a stick that head with him. The man shouted, and the Messenger of Allah said: 'Come and ask for retaliation. He said: 'No, I pardon you, O Messenger of Allah."'