If you rolled a human noble, your Mabari is already at your side from the prologue — no work required.
Everyone else has to earn one. Head into the Korcari Wilds outside Ostagar and find a wild flower, then bring it back to the kennel master at camp. After you finish the Tower of Ishal mission and set off toward Lothering, the hound catches up with you and joins the party for good.