The Prophet (ﷺ) said: If anyone swears a false oath in confinement, he should make his seat in Hell on account of his (act).
Sunan Abi Dawud Book 22, Hadith 1