If you accidentally close a Firefox tab, you can bring it back by right-clicking on the tab bar, then clicking the Undo Close Tab.
You can repeat this step if you're looking for a tab you closed a while back in the same session.
If you're looking for one you closed even further back, check the browser's History menu for Recently Closed Tabs.