I have heard that "The animals who have their 'EARS' outside their body give birth to their young ones and the animals who have their 'EARS' inside their body lay eggs." Is this true? Are there counterexamples?
Just to expand on @GriffinEvo's very good answer, you could make the same sort of claim using just about any characteristic that is more commonly found in mammals.
Giving birth to live young is a characteristic of most (see the platypus below), if not all, mammals. Therefore, you could make the statement about external ears (also more common to mammals) using any other mammal specific body plan. For example:
I am pretty sure you will find that this is as true as the statement about ears.
As in all other debates about this kind of thing, the platypus comes along and complicates things. This beastie has no external ears (or external testicles for that matter),it has tiny ear slits instead and it lays eggs. So, even this extreme weirdo seems to follow the ears (or testicles) on the inside means eggs rule. However, it is a mammal, it produces milk that it will feed to its newly hatched young like all mammals (well, almost, it doesn't have teats and instead the young suck up their mother's milk through her spongy belly).
A more straightforward and well known example that directly contradicts the ears claim is the dolphin. Dolphin ears are small holes on the sides of their heads but they give birth to live young as do all sea mammals. In fact, I am pretty sure that all sea mammals lack external ears (and cetaceans at least also lack external testicles) but give birth to live young. So seals, sea lions, walruses etc also contradict the ears rule.
So, in conclusion, no it is not true that all animals with internal lay eggs.
You are quoting from Imam Ali,
Though it is true that most typically we would associate egg laying with animals with ears "inside" such as birds and snakes, there are some examples that are not this way. Boa constrictors are one species which gives birth to live young rather than laying an egg and being a snake their ears are 'inside their body'. However I should point out that this is Ovoviviparity, not viviparity. For an example of a lizard with viviparity see the Pseudomoia lizard genus.