The COVID-19 disease, which has recently emerged and has been considered a worldwide pandemic, has had a significant impact on the lives of millions of people and has forced a substantial load on healthcare organizations. Numerous deep-learning models have been utilized for diagnosing coronaviruses from chest computed tomography (CT) images. However, in light of the limited availability of datasets on COVID-19, the pre-trained deep learning networks were used. The main objective of this research is to construct and develop an automated approach for the early detection and diagnosis of COVID-19 in thoracic CT images. This paper proposes the DDTL-COV model, a deep transfer learning model based on DenseNet121, to classify patients on CT scans as either COVID or non-COVID, utilizing weights obtained from the ImageNet dataset. Two datasets were used to train the DDTL-COV model: the SARS-CoV-2 CT-scan dataset and the COVID19-CT dataset. In the SARS-CoV-2 CT dataset, the model achieved a good accuracy of 99.6%. However, on the second dataset (COVID19-CT dataset), its performance shows an accuracy rate of 89%. These results show that the model performed better than alternative methods.