Makruh
The Prophet ﷺ said: Whoever wakes up from sleep should not put his hand into the vessel before washing it, for he does not know where his hand was during the night. Most scholars consider this disliked; Imam Ahmad even considers washing after night sleep obligatory.
Source: Sahih al-Bukhari 162 · Sahih Muslim 278