Did Prophet Muhammad fast on Yom Kippur?

Prophet Muhammad taught us to fast on Ashura in gratitude to Allah for the day He rescued Prophet Moses from Pharaoh (Yom Kippur for Jews).