“The Messenger of Allah (ﷺ) was never asked about someone who had done one thing before another, but he would gesture with both his hands to say: ‘There is no harm in that.’”
Sunan Ibn Majah Book 25, Hadith 168