If a tube is defective, you should find out in the first few hours of use.
If it leaks later, you should carefully figure out why before riding again. Find the hole in your tube and then look for corresponding problems in your wheel or tire. Sometimes a sharp rock or piece of glass will pierce your tire, but then fall off. More often, the problem will remain in your tire or rim until you fix it.