When setting up planted tanks in others' homes or workplaces, I usually just use plain sand to avoid any possible complications from using soil when I'm not there to fix them. For example, in a newly set up tank with too little plant mass or with fish that disturb the substrate, I find using soil is a surefire way to get greenwater. This would be easily and quickly fixed in my own tanks by attaching my UV steriliser, big water changes or just adding a load of floating/true aquatic plants, but could cause an issue if it happened in a tank I couldn't visit to maintain for a few weeks.
If you add enough plant mass at the very start and don't have tank inhabitants that stir the substrate there would be no issue though. It's a great cheap plant substrate for large tanks where buying proper aquarium-branded plant substrate would be too expensive.
For my own tanks, I often plant heavy root feeders in plant pots filled with soil and topped with sand. I just use whatever soil/compost I have around at the time and soak it for a few days, pouring off any bits that float to the top.