Praying to God - What are the consequences? I was raised in a Catholic environment, however I'm adding more and more Dhamma in my life, currently I spend much more time with Buddhists practices than Catholics.

the point is that I still keep the habit of praying to God before going to sleep (and before flying too), but if I'm not mistaken this is seen as something bad in Buddhism (wrong view/attachment to rituals)

Can someone explain what are the bad consequences, from a Buddhist's perspective of praying to God? If any.
How you should consider what do to depends on your situation. Have you converted to Buddhism? Do you believe in an all powerful God? If you haven't converted to Buddhism and still believe in a God and are just adopting Buddhist practices because you find that they give you wellbeing I wouldn't worry about it too much. But if you are trying to work out the full path to awakening according to the teachings of the Buddha then there could be a problem.

If you have decided to strive for enlightenment according to the Buddhist path then belief in a God is problematic because it is in conflict with the teachings that all things apart from Nibbana are impermanent, incapable of giving true happiness, and are non-self. So if you believe in an all powerful God and pray to him that will reinforce that belief and interfere with developing right view.

Apart from interfering with right view and thus delaying the attainment of enlightenment until such view is corrected, I can't see any direct consequences. Belief in God can lead some people to be heedless thinking that God will look after them and everything will automatically turn out all right, and still others sometimes give up their consciousness to their concept of God, but the actual belief in the existence of God itself isn't going to create bad Karma directly or anything.