How one can get a righteous child?
Turns out it all began not since educating the child when born. But the main factor is the wife Shalihah. Because the wife is a madrasa scratch at home.
If you choose the wrong husband or wife becomes a good builder, then state your son participate awry. If husband and wife handed the Shalihah, son clearly took Salih.
Because the daily meeting with children at home is his mother. So the Arabs say,
الأم هي المدرسة الأولى في حياة كل إنسان
"My mother was the first school for the life of every human being."
Allah Ta'ala says,
ولأمة مؤمنة خير من مشركة ولو أعجبتكم
"Truly a believing slave woman is better than women polytheists, even though he impress you." (QS. Al-Baqarah: 221)
If the selected shalihah wife will surely get good luck. Because,
تنكح المرأة لأربع لمالها ولحسبها وجمالها ولدينها, فاظفر بذات الدين تربت يداك
"She was married for four factors, namely religion, dignity, wealth and beauty. Choose a good woman religious. If not, surely you will be losers. " (HR. Bukhari, no. 5090 and Muslim, no. 1446; from Abu Hurairah)
The wife should also be good moral and completely adhering to the religion. Just look at the ratings of Mary to Mary when she gave birth to Jesus without a father,
يا أخت هارون ما كان أبوك امرأ سوء وما كانت أمك بغيا
"O sister of Aaron, your father ever was a bad person and is most certainly not your mother an unchaste woman." (QS. Maryam: 28)
Purpose of the verse is the father of Mary was a righteous man, was perhaps his son is the one who behaved badly. His mother was a woman shalihah, children may not be a prostitute.
So the beginning of the parents, the child being good.
For those who are already, living improve. Moga to be a good wife, a good state of their children's.
But in fact not only of the wife, the husband also plays a role. Let a good husband. So both will get a righteous child / shalihah.
May God bless our families into harmonious family, mawaddah wa Rahmah.