This is permissible. However, the sunnah is to slaughter only one sheep and include in it all your deceased ones.As for the prophet Muhammad salla ALlahu alahi wa sallam, you shouldn’t do that as  he is not in need for that and it is an innovation.

Read more

You do the good deeds and ask Allah by saying: I ask You for I did so and so for your sake to do so and so for me.

Read more