Laying eggs vs giving birth: is there a connection with internal vs. external ears?
You are quoting from Imam Ali, 


  "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."


And in short the answer is that is wrong. Giving birth to live young is called vivipary. When a species lays eggs it is called oviparity. There are other mechanisms too.


  Ovuliparity: fecundation is external (in arthropods and fishes, most
  of frogs) 
  
  Oviparity: fecundation is internal, the female lays zygotes
  as eggs with important vitellus (typically birds) 
  
  Ovo-viviparity: or
  oviparity with retention of zygotes in the female’s body or in the
  male’s body, but there are no trophic interactions between zygote and
  parents. (Anguis fragilis is an example of ovo-viviparity.) In the sea
  horse, zygotes are retained in the male’s ventral "marsupium". In the
  frog Rhinoderma darwinii, the zygotes developed in the vocal sac. In
  the frog Rheobatrachus, zygotes developed in the stomach. 
  
  Histotrophic
  viviparity: the zygotes developed in the female’s oviducts, but find
  their nutriments by oophagy or adelphophagy (intra-uterine cannibalism
  in some sharks or in the black salamander Salamandra atra).
  
  Hemotrophic viviparity: nutriments are provided by the female, often
  through placenta. In the frog Gastrotheca ovifera, embryos are fed by
  the mother through specialized gills. The lizard Pseudomoia
  pagenstecheri and most mammals exhibit a hemotrophic viviparity.


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.