You do. If the scores are level then the tiebreaker is decided on amount of away goals scored. As you scored 5 at his home and he scored 4 goals at your home, you edge it.

Brilliant win though, 5-2 away is a great achievement, especially after losing the first leg 4-1 at home