It's generally not recommended to leave a fire burning in a fire pit overnight. Unattended fires pose safety hazards, and embers could reignite. Always extinguish the fire completely before leaving the area or going to sleep. Use water or sand to ensure all flames and hot coals are out, and then cover the pit with a fireproof lid once it's cooled.