Software development (SD) companies employ, train and provide software developers with the platform to improve their skills. Unfortunately, these investments are lost when a software developer resigns from the company or is not physically available to carry out work activities. This is a major problem experienced in Namibian SD companies. This paper investigates how knowledge is transferred and retained by software developers in Namibian SD companies. Using a case study approach, five software developers were purposively selected from five software companies in the city of Windhoek, Namibia. Data were collected using structured interviews. The findings revealed that Namibian SD companies do not have a formal knowledge management (KM) strategy in place, management is not involved in KM practices and experienced software developers are not willing to participate in the KM process as a result of job insecurities. The findings also revealed that knowledge gaps are created in Namibian SD companies when an experienced software developer resigns from the company, and this consequently hampers the SD process. Based on the findings, the study therefore proposes a knowledge management framework (KMF) for Namibian SD companies, which incorporates the needs of each software developer as well as the needs of the SD company to create an effective KM for Namibian SD companies. The KMF for Namibian SD companies were presented to five experts in the field of Software Engineering. The experts validated the KMF for Namibian SD companies and found it useful within the context of Namibian SD companies. The KMF for Namibian SD companies is expected to improve the way KM processes are carried out in Namibian software companies, providing a realistic approach to improving KM practices.