Constable David Whyte, 42, was one of six men injured in the attack at the Park Inn Hotel, West George Street, Glasgow, on Friday.
He remains in hospital where his condition has now improved from critical to stable.
In a statement released through Police Scotland, he said he did what “all officers are trained for” and praised his colleagues for putting themselves in harm’s way to try and contain the incident while also tending to his injuries.
The statement said: “The incident myself and colleague faced in West George Street was extremely challenging. The scene we were confronted with is something I will never forget.
“As the first responders on scene, myself and my colleague did what all officers are trained for – to save lives.
“I would like to thank my colleagues who put themselves in harm’s way to contain this incident and assist with the vital treatment given to myself and others at the scene by other emergency services.
“Despite suffering serious injuries myself, I know that the swift actions of colleagues saved lives and prevented a far more serious incident.”
He also thanked staff at Queen Elizabeth University Hospital for their “outstanding care”.
The officer added: “Finally, I would like to thank the public for all their kind messages of support and for the good wishes from all at Police Scotland. It means a lot and has brought myself and my family great comfort at this difficult time.”
Three asylum seekers and two members of hotel staff were also injured in the attack.
The suspect, believed to be in his 20s and from Sudan, was shot dead by police at the scene.
It has now been claimed that he warned of carrying out the attack on Thursday night with hotel staff informed of the threat.
First Minister Nicola Sturgeon praised the officer for his bravery.
Ms Sturgeon tweeted today: "My thoughts today remain with Constable Whyte - whose bravery we are all deeply grateful for - and the other people who sustained injuries in yesterday's terrible incident. I wish them all a full and speedy recovery."
Police are appealing for anyone with footage of the scene following a mass stabbing in Glasgow to come forward.
The hotel is being used to house asylum seekers during the Coronavirus outbreak given the difficulty in securing tenancies and rented accommodation over lockdown.
The Mears Group, which has the Home Office contract to house asylum seekers in Glasgow, said it was “deeply saddened and shocked” by the tragic events.
A statement added: "We are contracted by the Home Office to provide housing and support services to asylum seekers in Scotland. We will not anticipate a live police investigation, but we can confirm that the attack happened in a hotel where we are housing asylum seekers during the lockdown period.”
A message from the Editor:
Thank you for reading this story on our website. While I have your attention, I also have an important request to make of you.With the coronavirus lockdown having a major impact on many of our advertisers - and consequently the revenue we receive - we are more reliant than ever on you taking out a digital subscription.Subscribe to scotsman.com and enjoy unlimited access to Scottish news and information online and on our app. With a digital subscription, you can read more than 5 articles, see fewer ads, enjoy faster load times, and get access to exclusive newsletters and content. Visit https://www.scotsman.com/subscriptions now to sign up.
Our journalism costs money and we rely on advertising, print and digital revenues to help to support them. By supporting us, we are able to support you in providing trusted, fact-checked content for this website.