Sunan Abi Dawud, Book 15, Hadith 52 (Abu Dawud 2529)

Narrated Abdullah ibn Amr ibn al-'As:

A man came to the Messenger of Allah (ﷺ) and said: I came to you to take the oath of allegiance to you on emigration, and I left my parents weeping. He (the Prophet) said: Return to them and make them laugh as you made them weep.