The Lord said, These commandments that I give you today are to be upon your hearts. Impress them on your children. Talk about them when you sit at home and when you walk along the road, when you lie down and when you get up. Tie them as symbols on your hands and bind them on your foreheads. When you teach your children to obey you, you are enabling them to one day obey God.
Obedience is a fundamental lesson of life.
If you teach them to obey you only when they feel like it, they will be unprepared for life and certainly unprepared for a relationship with God. I am amazed when I hear parents say, I m not going to force my religion on my children. I want them to make up their own minds when they grow up. You could begin by having devotions together. You can pray as a family.