My father has knee pain and while getting up from sajdah, he is not able to sit in jalsa position because the bending of knee hurts. He therefore keeps himself bending towards sajda and says “astaghrifullah rabi wa atubu ilayh” then goes back to sajda. Is his namaz ok?

In such a scenario, he can sit on the chair and place another chair in front in order to do the sajdah. Rest of the Namaz he would pray as normal.