How to add sidebar to homepage programmatically?

Can you send a the code of the pages the sidebar is showing?

But it should normally be before the get_footer() function