Retirement tax questions

Was it a 401K or from an IRA?  They are not the same thing.  You first said from a 401K then said from the same IRA.  Those are not the same.  You report the withdrawals in the year you took it.  So the 8/1/17 Withdrawal goes on your 2017 return.