Allah tells us in the Qur'an to be kind to orphans. The Prophet has emphasized the high reward Allah has in store for those who take good care of orphans. Yet, people attach too much important to lineage and family connections. An orphan whose parents are unknown is treated as if his abandonment by his parents is his own fault. While this attitude is quite common, it is by no means general.
Some people certainly look at an abandoned child as totally blameless.
His parents may have been guilty of a very serious offense, but he bears no responsibility for their offenses. He is to be treated as free of all kinds of guilt. There are many couples who consider fostering an orphan or bringing up in order to earn Allah' s reward. There is, however, an important point to consider in this connection. This relates to the adoption of an orphan child.