From Sahih Muslim (Hadith 6233):
Abdullah b. Shaddad reported that he heard `Ali saying:Allah's Messenger (ﷺ) did not gather his parents except in case of Sa`d b. Malik that he said to him on the Day of Uhud: Shoot an arrow, may my father and mother be taken as ransom for you
Reference: Muslim 6233