Faced with the news of his impending death, the king makes a deeply personal choice. Rather than writing a final will, he decides to spend his time in private communion with his Creator, offering a very brief prayer to God [ביאור שטיינזלץ].
To achieve this profound connection, he physically turns away from the rest of the room to face the wall [מצודת ציון]. This deliberate movement is intended to help him focus entirely and direct his heart toward God. By turning away, the king actively isolates himself from his environment. Since his family members and other people are likely gathered nearby, he wants to ensure they do not interrupt his quiet concentration. This total physical separation allows him to block out all distractions and pray from the very depths of his heart [מלבי״ם, שד״ל].