a. The rabbit learnt a lesson from this race: never to be over-confident. Using a simile inside a metaphor sounds weird, so you should omit the peacock.
b. The rabbit regretted having fallen asleep. From that time on, the rabbit and the tortoise were friends.