Shares bought for children

My father has paid shares for his 4 girls and 1 son during his lifetime.After he passes away must the shares be distributed equally or can it go all to his wife. Or must it be distributed according shariah during his lifetime as well as after his lifetime.thanks . Jazakallah kheir . Junaid