Destroy target creature. Search your library for a basic land card, put it onto the battlefield tapped, then shuffle.
If the target creature is an illegal target by the time Deathsprout tries to resolve, the spell doesn’t resolve. You don’t search for a land card. If the target is legal but not destroyed (most likely because it has indestructible), you do search.