The Prince also stopped to spend a moment with the horses